public final class ShortSerializer extends AbstractSerializer<Short>
Serializer for Shorts (no pun intended).| Constructor and Description |
|---|
ShortSerializer() |
| Modifier and Type | Method and Description |
|---|---|
Short |
fromByteBuffer(ByteBuffer byteBuffer)
Extract an object of type T from the bytes.
|
static ShortSerializer |
get() |
ByteBuffer |
toByteBuffer(Short obj)
Extract bytes from the obj of type T
|
computeInitialHashSize, fromBytes, fromBytesList, fromBytesMap, fromBytesSet, getComparatorType, toBytes, toBytesList, toBytesMap, toBytesSetpublic static ShortSerializer get()
public ByteBuffer toByteBuffer(Short obj)
SerializertoByteBuffer in interface Serializer<Short>toByteBuffer in class AbstractSerializer<Short>public Short fromByteBuffer(ByteBuffer byteBuffer)
SerializerfromByteBuffer in interface Serializer<Short>fromByteBuffer in class AbstractSerializer<Short>Copyright © 2014. All Rights Reserved.