|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ehcache.impl.serialization.LongSerializer
public class LongSerializer
Default Serializer for Long type. Simply writes the long value
to a byte buffer.
| Constructor Summary | |
|---|---|
LongSerializer()
|
|
LongSerializer(java.lang.ClassLoader classLoader)
|
|
LongSerializer(java.lang.ClassLoader classLoader,
FileBasedPersistenceContext persistenceContext)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Long object,
java.nio.ByteBuffer binary)
Checks if the given instance and serial form are representations of the same instance. |
java.lang.Long |
read(java.nio.ByteBuffer binary)
Reconstructs an instance from the given serial form. |
java.nio.ByteBuffer |
serialize(java.lang.Long object)
Transforms the given instance into its serial form. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LongSerializer()
public LongSerializer(java.lang.ClassLoader classLoader)
public LongSerializer(java.lang.ClassLoader classLoader,
FileBasedPersistenceContext persistenceContext)
| Method Detail |
|---|
public java.nio.ByteBuffer serialize(java.lang.Long object)
Serializer
serialize in interface Serializer<java.lang.Long>object - the instance to serialize
public java.lang.Long read(java.nio.ByteBuffer binary)
throws java.lang.ClassNotFoundException
Serializer
read in interface Serializer<java.lang.Long>binary - the binary representation of the serial form
java.lang.ClassNotFoundException - if the type to de-serialize to cannot be found
public boolean equals(java.lang.Long object,
java.nio.ByteBuffer binary)
throws java.lang.ClassNotFoundException
Serializer
equals in interface Serializer<java.lang.Long>object - the instance to checkbinary - the serial form to check
true if both parameters represent the same instance, false otherwise
java.lang.ClassNotFoundException - if the type to de-serialize to cannot be found
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||