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, comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
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–2017. All rights reserved.