- java.lang.Object
-
- swim.structure.Form<ByteBuffer>
-
- swim.structure.form.ByteBufferForm
-
public final class ByteBufferForm extends Form<ByteBuffer>
Transformation between a structurally typedItemand aByteBuffer.
-
-
Constructor Summary
Constructors Constructor Description ByteBufferForm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteBuffercast(Item item)Converts a structurally typediteminto a nominally typed Java object.Itemmold(ByteBuffer value)Converts a nominally typed Javaobjectinto its structurally typed equivalent.Class<ByteBuffer>type()Returns the reifiedClassof typeT.-
Methods inherited from class swim.structure.Form
cast, forArray, forBigInteger, forBoolean, forBuiltin, forByte, forByteBuffer, forCharacter, forClass, forClass, forCollection, forDouble, forFloat, forInteger, forItem, forList, forLong, forMap, forMap, forNumber, forSet, forShort, forString, forValue, isBuiltin, mold, tag, tag, unit, unit
-
-
-
-
Method Detail
-
type
public Class<ByteBuffer> type()
Description copied from class:FormReturns the reifiedClassof typeT.- Specified by:
typein classForm<ByteBuffer>
-
mold
public Item mold(ByteBuffer value)
Description copied from class:FormConverts a nominally typed Javaobjectinto its structurally typed equivalent. The returnedItemmust never benull.- Specified by:
moldin classForm<ByteBuffer>
-
cast
public ByteBuffer cast(Item item)
Description copied from class:FormConverts a structurally typediteminto a nominally typed Java object. The passed-initemis assumed to be non-null.- Specified by:
castin classForm<ByteBuffer>
-
-