public final class IntegerTranscoder extends SpyObject implements Transcoder<java.lang.Integer>
| Constructor and Description |
|---|
IntegerTranscoder() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
asyncDecode(CachedData d)
Should the transcoder be run asyncronously.
|
java.lang.Integer |
decode(CachedData d)
Decode the cached object into the object it represents.
|
CachedData |
encode(java.lang.Integer l)
Encode the given object for storage.
|
int |
getMaxSize()
Get the maximum size of objects handled by this transcoder.
|
public boolean asyncDecode(CachedData d)
TranscoderasyncDecode in interface Transcoder<java.lang.Integer>public CachedData encode(java.lang.Integer l)
Transcoderencode in interface Transcoder<java.lang.Integer>l - the objectpublic java.lang.Integer decode(CachedData d)
Transcoderdecode in interface Transcoder<java.lang.Integer>d - the datapublic int getMaxSize()
TranscodergetMaxSize in interface Transcoder<java.lang.Integer>Copyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.