Package model
Class VariantCall.VariantCallSerializer
java.lang.Object
model.VariantCall.VariantCallSerializer
- All Implemented Interfaces:
org.ehcache.spi.serialization.Serializer<VariantCall>
- Enclosing class:
VariantCall
public static class VariantCall.VariantCallSerializer
extends Object
implements org.ehcache.spi.serialization.Serializer<VariantCall>
Serializer for the
VariantCall class.
This class implements the Serializer interface to provide custom serialization and deserialization logic for
VariantCall objects. It handles the conversion of VariantCall instances to and from ByteBuffer format,
allowing for efficient storage and retrieval in caching systems.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanequals(VariantCall object, ByteBuffer binary) Compares aVariantCallobject with its binary representation for equality.read(ByteBuffer binary) Deserializes aVariantCallobject from aByteBuffer.serialize(VariantCall object) Serializes aVariantCallobject into aByteBuffer.
-
Constructor Details
-
VariantCallSerializer
public VariantCallSerializer()Constructs a newVariantCall.VariantCallSerializerinstance.This constructor initializes the serializer without any special configuration.
-
-
Method Details
-
serialize
public ByteBuffer serialize(VariantCall object) throws org.ehcache.spi.serialization.SerializerException Serializes aVariantCallobject into aByteBuffer.- Specified by:
serializein interfaceorg.ehcache.spi.serialization.Serializer<VariantCall>- Parameters:
object- The instance to serialize.- Returns:
- A
ByteBuffercontaining the serialized data of theVariantCallobject. - Throws:
org.ehcache.spi.serialization.SerializerException- If an error occurs during serialization.
-
read
Deserializes aVariantCallobject from aByteBuffer.- Specified by:
readin interfaceorg.ehcache.spi.serialization.Serializer<VariantCall>- Parameters:
binary- The binary representation to deserialize.- Returns:
- The deserialized
VariantCallobject. - Throws:
org.ehcache.spi.serialization.SerializerException- If an error occurs during deserialization.
-
equals
public boolean equals(VariantCall object, ByteBuffer binary) throws org.ehcache.spi.serialization.SerializerException Compares aVariantCallobject with its binary representation for equality.- Specified by:
equalsin interfaceorg.ehcache.spi.serialization.Serializer<VariantCall>- Parameters:
object- The instance to check for equality.binary- The serialized form to check against.- Returns:
trueif the object and its binary representation are equal;falseotherwise.- Throws:
org.ehcache.spi.serialization.SerializerException- If an error occurs during comparison.
-