- java.lang.Object
-
- swim.structure.Form<ByteBuffer>
-
- swim.structure.form.ByteBufferForm
-
public final class ByteBufferForm extends Form<ByteBuffer>
Transformation between a structurally typedItem
and aByteBuffer
.
-
-
Constructor Summary
Constructors Constructor Description ByteBufferForm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteBuffer
cast(Item item)
Converts a structurally typeditem
into a nominally typed Java object.Item
mold(ByteBuffer value)
Converts a nominally typed Javaobject
into its structurally typed equivalent.Class<ByteBuffer>
type()
Returns the reifiedClass
of 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:Form
Returns the reifiedClass
of typeT
.- Specified by:
type
in classForm<ByteBuffer>
-
mold
public Item mold(ByteBuffer value)
Description copied from class:Form
Converts a nominally typed Javaobject
into its structurally typed equivalent. The returnedItem
must never benull
.- Specified by:
mold
in classForm<ByteBuffer>
-
cast
public ByteBuffer cast(Item item)
Description copied from class:Form
Converts a structurally typeditem
into a nominally typed Java object. The passed-initem
is assumed to be non-null
.- Specified by:
cast
in classForm<ByteBuffer>
-
-