me.prettyprint.cassandra.serializers
Class ShortSerializer

java.lang.Object
  extended by me.prettyprint.cassandra.serializers.AbstractSerializer<Short>
      extended by me.prettyprint.cassandra.serializers.ShortSerializer
All Implemented Interfaces:
Serializer<Short>

public final class ShortSerializer
extends AbstractSerializer<Short>

Serializer for Shorts (no pun intended).


Constructor Summary
ShortSerializer()
           
 
Method Summary
 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
 
Methods inherited from class me.prettyprint.cassandra.serializers.AbstractSerializer
computeInitialHashSize, fromBytes, fromBytesList, fromBytesMap, fromBytesSet, getComparatorType, toBytes, toBytesList, toBytesMap, toBytesSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShortSerializer

public ShortSerializer()
Method Detail

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.