public interface ObjectStrategy<T> extends Comparator<T>
| Modifier and Type | Method and Description | 
|---|---|
T | 
fromByteBuffer(ByteBuffer buffer,
              int numBytes)
Convert values from their underlying byte representation. 
 | 
default T | 
fromByteBufferWithSize(ByteBuffer buffer)
Reads 4-bytes numBytes from the given buffer, and then delegates to  
fromByteBuffer(ByteBuffer, int). | 
Class<? extends T> | 
getClazz()  | 
byte[] | 
toBytes(T val)  | 
default void | 
writeTo(T val,
       WriteOutBytes out)  | 
compare, comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongT fromByteBuffer(ByteBuffer buffer, int numBytes)
ByteBuffer.slice(), ByteBuffer.asReadOnlyBuffer() or ByteBuffer.duplicate() in
 this case.buffer - buffer to read value fromnumBytes - number of bytes used to store the value, starting at buffer.position()byte[] toBytes(T val)
default T fromByteBufferWithSize(ByteBuffer buffer)
fromByteBuffer(ByteBuffer, int).default void writeTo(T val, WriteOutBytes out) throws IOException
IOExceptionCopyright © 2011–2018. All rights reserved.