net.rubyeye.xmemcached.transcoders
Class LongTranscoder

java.lang.Object
  extended by net.rubyeye.xmemcached.transcoders.BaseSerializingTranscoder
      extended by net.rubyeye.xmemcached.transcoders.PrimitiveTypeTranscoder<java.lang.Long>
          extended by net.rubyeye.xmemcached.transcoders.LongTranscoder
All Implemented Interfaces:
Transcoder<java.lang.Long>

public final class LongTranscoder
extends PrimitiveTypeTranscoder<java.lang.Long>

Transcoder that serializes and unserializes longs.


Field Summary
 
Fields inherited from class net.rubyeye.xmemcached.transcoders.PrimitiveTypeTranscoder
primitiveAsString, tu
 
Fields inherited from class net.rubyeye.xmemcached.transcoders.BaseSerializingTranscoder
charset, compressionThreshold, DEFAULT_CHARSET, DEFAULT_COMPRESSION_THRESHOLD
 
Constructor Summary
LongTranscoder()
           
 
Method Summary
 java.lang.Long decode(CachedData d)
          Decode the cached object into the object it represents.
 CachedData encode(java.lang.Long l)
          Encode the given object for storage.
 
Methods inherited from class net.rubyeye.xmemcached.transcoders.PrimitiveTypeTranscoder
isPackZeros, isPrimitiveAsString, setPackZeros, setPrimitiveAsString
 
Methods inherited from class net.rubyeye.xmemcached.transcoders.BaseSerializingTranscoder
compress, decodeString, decompress, deserialize, encodeString, serialize, setCharset, setCompressionThreshold
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.rubyeye.xmemcached.transcoders.Transcoder
setCompressionThreshold
 

Constructor Detail

LongTranscoder

public LongTranscoder()
Method Detail

encode

public CachedData encode(java.lang.Long l)
Description copied from interface: Transcoder
Encode the given object for storage.

Parameters:
l - the object
Returns:
the CachedData representing what should be sent

decode

public java.lang.Long decode(CachedData d)
Description copied from interface: Transcoder
Decode the cached object into the object it represents.

Parameters:
d - the data
Returns:
the return value


Copyright © 2011. All Rights Reserved.