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 TypeMethodDescriptionboolean
equals
(VariantCall object, ByteBuffer binary) Compares aVariantCall
object with its binary representation for equality.read
(ByteBuffer binary) Deserializes aVariantCall
object from aByteBuffer
.serialize
(VariantCall object) Serializes aVariantCall
object into aByteBuffer
.
-
Constructor Details
-
VariantCallSerializer
public VariantCallSerializer()Constructs a newVariantCall.VariantCallSerializer
instance.This constructor initializes the serializer without any special configuration.
-
-
Method Details
-
serialize
public ByteBuffer serialize(VariantCall object) throws org.ehcache.spi.serialization.SerializerException Serializes aVariantCall
object into aByteBuffer
.- Specified by:
serialize
in interfaceorg.ehcache.spi.serialization.Serializer<VariantCall>
- Parameters:
object
- The instance to serialize.- Returns:
- A
ByteBuffer
containing the serialized data of theVariantCall
object. - Throws:
org.ehcache.spi.serialization.SerializerException
- If an error occurs during serialization.
-
read
Deserializes aVariantCall
object from aByteBuffer
.- Specified by:
read
in interfaceorg.ehcache.spi.serialization.Serializer<VariantCall>
- Parameters:
binary
- The binary representation to deserialize.- Returns:
- The deserialized
VariantCall
object. - 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 aVariantCall
object with its binary representation for equality.- Specified by:
equals
in interfaceorg.ehcache.spi.serialization.Serializer<VariantCall>
- Parameters:
object
- The instance to check for equality.binary
- The serialized form to check against.- Returns:
true
if the object and its binary representation are equal;false
otherwise.- Throws:
org.ehcache.spi.serialization.SerializerException
- If an error occurs during comparison.
-