public class LongSerializer extends java.lang.Object implements Serializer<java.lang.Long>
Serializer for Long type. Simply writes the long value
 to a byte buffer.| Constructor and Description | 
|---|
LongSerializer()
No arg constructor 
 | 
LongSerializer(java.lang.ClassLoader classLoader)
Constructor to enable this serializer as a transient one. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(java.lang.Long object,
      java.nio.ByteBuffer binary)
Checks if the given instance and serial form  
represent 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. 
 | 
public LongSerializer()
public LongSerializer(java.lang.ClassLoader classLoader)
 Parameter is ignored as Long is a base java type.
classLoader - the classloader to useSerializerpublic java.nio.ByteBuffer serialize(java.lang.Long object)
serialize in interface Serializer<java.lang.Long>object - the instance to serializepublic java.lang.Long read(java.nio.ByteBuffer binary)
                    throws java.lang.ClassNotFoundException
read in interface Serializer<java.lang.Long>binary - the binary representation of the serial formjava.lang.ClassNotFoundException - if the type to de-serialize to cannot be foundpublic boolean equals(java.lang.Long object,
                      java.nio.ByteBuffer binary)
               throws java.lang.ClassNotFoundException
represent the same instance.equals in interface Serializer<java.lang.Long>object - the instance to checkbinary - the serial form to checktrue if both parameters represent equal instances, false otherwisejava.lang.ClassNotFoundException - if the type to de-serialize to cannot be found