me.prettyprint.cassandra.serializers
Class ShortSerializer
java.lang.Object
me.prettyprint.cassandra.serializers.AbstractSerializer<Short>
me.prettyprint.cassandra.serializers.ShortSerializer
- All Implemented Interfaces:
- Serializer<Short>
public final class ShortSerializer
- extends AbstractSerializer<Short>
Serializer
for Short
s (no pun intended).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShortSerializer
public ShortSerializer()
get
public static ShortSerializer get()
toByteBuffer
public ByteBuffer toByteBuffer(Short obj)
- Description copied from interface:
Serializer
- Extract bytes from the obj of type T
- Specified by:
toByteBuffer
in interface Serializer<Short>
- Specified by:
toByteBuffer
in class AbstractSerializer<Short>
- Returns:
fromByteBuffer
public Short fromByteBuffer(ByteBuffer byteBuffer)
- Description copied from interface:
Serializer
- Extract an object of type T from the bytes.
- Specified by:
fromByteBuffer
in interface Serializer<Short>
- Specified by:
fromByteBuffer
in class AbstractSerializer<Short>
- Returns:
Copyright © 2011. All Rights Reserved.