Class ByteBufferForm

java.lang.Object
swim.structure.Form<ByteBuffer>
swim.structure.form.ByteBufferForm

public final class ByteBufferForm extends Form<ByteBuffer>
Transformation between a structurally typed Item and a ByteBuffer.
  • Constructor Details

    • ByteBufferForm

      public ByteBufferForm()
  • Method Details

    • type

      public Class<ByteBuffer> type()
      Description copied from class: Form
      Returns the reified Class of type T.
      Specified by:
      type in class Form<ByteBuffer>
    • mold

      public Item mold(ByteBuffer value)
      Description copied from class: Form
      Converts a nominally typed Java object into its structurally typed equivalent. The returned Item must never be null.
      Specified by:
      mold in class Form<ByteBuffer>
    • cast

      public ByteBuffer cast(Item item)
      Description copied from class: Form
      Converts a structurally typed item into a nominally typed Java object. The passed-in item is assumed to be non-null.
      Specified by:
      cast in class Form<ByteBuffer>