T - type handled by this converterpublic interface Portability<T>
| Modifier and Type | Method and Description |
|---|---|
T |
decode(ByteBuffer buffer)
Decodes a
ByteBuffer to an object of type T. |
ByteBuffer |
encode(T object)
Encodes an object of type
T as a ByteBuffer. |
boolean |
equals(Object object,
ByteBuffer buffer)
Returns true if the encoded object once decoded would be
Object.equals(Object) to the supplied object. |
ByteBuffer encode(T object)
T as a ByteBuffer.object - object to be encodedT decode(ByteBuffer buffer)
ByteBuffer to an object of type T.buffer - bytes to decodeboolean equals(Object object, ByteBuffer buffer)
Object.equals(Object) to the supplied object.object - object to compare tobuffer - buffer containing encoded objecttrue if the two parameters are "equal"Copyright © 2015–2024. All rights reserved.