Transformation between a structurally typed
Item and a ByteBuffer.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConverts a structurally typediteminto a nominally typed Java object.mold(ByteBuffer value) Converts a nominally typed Javaobjectinto its structurally typed equivalent.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
-
Constructor Details
-
ByteBufferForm
public ByteBufferForm()
-
-
Method Details
-
type
Description copied from class:FormReturns the reifiedClassof typeT.- Specified by:
typein classForm<ByteBuffer>
-
mold
Description copied from class:FormConverts a nominally typed Javaobjectinto its structurally typed equivalent. The returnedItemmust never benull.- Specified by:
moldin classForm<ByteBuffer>
-
cast
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>
-