me.prettyprint.cassandra.serializers
Class CharSerializer

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

public class CharSerializer
extends AbstractSerializer<Character>

Uses Char Serializer

Author:
Todd Nine

Constructor Summary
CharSerializer()
           
 
Method Summary
 Character fromByteBuffer(ByteBuffer bytes)
          Extract an object of type T from the bytes.
static CharSerializer get()
           
 ByteBuffer toByteBuffer(Character 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

CharSerializer

public CharSerializer()
Method Detail

get

public static CharSerializer get()

toByteBuffer

public ByteBuffer toByteBuffer(Character obj)
Description copied from interface: Serializer
Extract bytes from the obj of type T

Specified by:
toByteBuffer in interface Serializer<Character>
Specified by:
toByteBuffer in class AbstractSerializer<Character>
Returns:

fromByteBuffer

public Character fromByteBuffer(ByteBuffer bytes)
Description copied from interface: Serializer
Extract an object of type T from the bytes.

Specified by:
fromByteBuffer in interface Serializer<Character>
Specified by:
fromByteBuffer in class AbstractSerializer<Character>
Returns:


Copyright © 2011. All Rights Reserved.