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.
|
Class<? extends T> |
getClazz() |
byte[] |
toBytes(T val) |
compare, equals
T fromByteBuffer(ByteBuffer buffer, int numBytes)
buffer
- buffer to read value fromnumBytes
- number of bytes used to store the value, starting at buffer.position()byte[] toBytes(T val)
Copyright © 2011–2015. All rights reserved.