Package org.ehcache.impl.serialization
Class LongSerializer
java.lang.Object
org.ehcache.impl.serialization.LongSerializer
- All Implemented Interfaces:
org.ehcache.spi.serialization.Serializer<Long>
public class LongSerializer
extends Object
implements org.ehcache.spi.serialization.Serializer<Long>
Default
Serializer for Long type. Simply writes the long value
to a byte buffer.-
Constructor Summary
ConstructorsConstructorDescriptionNo arg constructorLongSerializer(ClassLoader classLoader) Constructor to enable this serializer as a transient one. -
Method Summary
Modifier and TypeMethodDescriptionbooleanequals(Long object, ByteBuffer binary) read(ByteBuffer binary)
-
Constructor Details
-
LongSerializer
public LongSerializer()No arg constructor -
LongSerializer
Constructor to enable this serializer as a transient one.Parameter is ignored as
Longis a base java type.- Parameters:
classLoader- the classloader to use- See Also:
-
Serializer
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceorg.ehcache.spi.serialization.Serializer<Long>
-
read
- Specified by:
readin interfaceorg.ehcache.spi.serialization.Serializer<Long>- Throws:
ClassNotFoundException
-
equals
- Specified by:
equalsin interfaceorg.ehcache.spi.serialization.Serializer<Long>- Throws:
ClassNotFoundException
-