public class IntegerSerializer extends java.lang.Object implements Serializer<java.lang.Integer>
Serializer for Integer type. Simply writes the integer value
 to a byte buffer.| Constructor and Description | 
|---|
| IntegerSerializer()No arg constructor | 
| IntegerSerializer(java.lang.ClassLoader classLoader)Constructor to enable this serializer as a transient one. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(java.lang.Integer object,
      java.nio.ByteBuffer binary)Checks if the given instance and serial form  representthe same instance. | 
| java.lang.Integer | read(java.nio.ByteBuffer binary)Reconstructs an instance from the given serial form. | 
| java.nio.ByteBuffer | serialize(java.lang.Integer object)Transforms the given instance into its serial form. | 
public IntegerSerializer()
public IntegerSerializer(java.lang.ClassLoader classLoader)
 Parameter is ignored as Integer is a base java type.
classLoader - the classloader to useSerializerpublic java.nio.ByteBuffer serialize(java.lang.Integer object)
serialize in interface Serializer<java.lang.Integer>object - the instance to serializepublic java.lang.Integer read(java.nio.ByteBuffer binary)
read in interface Serializer<java.lang.Integer>binary - the binary representation of the serial formpublic boolean equals(java.lang.Integer object,
                      java.nio.ByteBuffer binary)
represent the same instance.equals in interface Serializer<java.lang.Integer>object - the instance to checkbinary - the serial form to checktrue if both parameters represent equal instances, false otherwise