nxt.util.bbh

## Interface ObjectRw<T>

- All Known Implementing Classes:
    StringRw

      public interface ObjectRw<T>

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getSize(T t)`
    `T` | `readFromBuffer(java.nio.ByteBuffer buffer)`
    `boolean` | `validate(T t)`
    `void` | `writeToBuffer(T t, java.nio.ByteBuffer buffer)`

- - ### Method Detail

    - #### getSize

          int getSize(T t)

    - #### readFromBuffer

          T readFromBuffer(java.nio.ByteBuffer buffer)
                    throws NxtException.NotValidException

      Throws:
        `NxtException.NotValidException`

    - #### writeToBuffer

          void writeToBuffer(T t,
                             java.nio.ByteBuffer buffer)

    - #### validate

          boolean validate(T t)