org.ehcache.impl.internal.store.offheap.portability
Class SerializerPortability<T>

java.lang.Object
  extended by org.ehcache.impl.internal.store.offheap.portability.SerializerPortability<T>
All Implemented Interfaces:
org.terracotta.offheapstore.storage.portability.Portability<T>

public class SerializerPortability<T>
extends java.lang.Object
implements org.terracotta.offheapstore.storage.portability.Portability<T>

SerializerWrapper


Constructor Summary
SerializerPortability(Serializer<T> serializer)
           
 
Method Summary
 T decode(java.nio.ByteBuffer byteBuffer)
           
 java.nio.ByteBuffer encode(T t)
           
 boolean equals(java.lang.Object o, java.nio.ByteBuffer byteBuffer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializerPortability

public SerializerPortability(Serializer<T> serializer)
Method Detail

encode

public java.nio.ByteBuffer encode(T t)
Specified by:
encode in interface org.terracotta.offheapstore.storage.portability.Portability<T>

decode

public T decode(java.nio.ByteBuffer byteBuffer)
Specified by:
decode in interface org.terracotta.offheapstore.storage.portability.Portability<T>

equals

public boolean equals(java.lang.Object o,
                      java.nio.ByteBuffer byteBuffer)
Specified by:
equals in interface org.terracotta.offheapstore.storage.portability.Portability<T>