Transformation between a structurally typed
Item
and a ByteBuffer
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConverts a structurally typeditem
into a nominally typed Java object.mold
(ByteBuffer value) Converts a nominally typed Javaobject
into its structurally typed equivalent.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
-
Constructor Details
-
ByteBufferForm
public ByteBufferForm()
-
-
Method Details
-
type
Description copied from class:Form
Returns the reifiedClass
of typeT
.- Specified by:
type
in classForm<ByteBuffer>
-
mold
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
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>
-