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