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 Details

    • VariantCallSerializer

      public VariantCallSerializer()
      Constructs a new VariantCall.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 a VariantCall object into a ByteBuffer.
      Specified by:
      serialize in interface org.ehcache.spi.serialization.Serializer<VariantCall>
      Parameters:
      object - The instance to serialize.
      Returns:
      A ByteBuffer containing the serialized data of the VariantCall object.
      Throws:
      org.ehcache.spi.serialization.SerializerException - If an error occurs during serialization.
    • read

      public VariantCall read(ByteBuffer binary) throws org.ehcache.spi.serialization.SerializerException
      Deserializes a VariantCall object from a ByteBuffer.
      Specified by:
      read in interface org.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 a VariantCall object with its binary representation for equality.
      Specified by:
      equals in interface org.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.