Interface Serializer


public interface Serializer
Interface for serialization of store artifacts.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    decode(byte[] bytes)
    Deserialize the specified bytes.
    <T> byte[]
    encode(T object)
    Serialize the specified object.
  • Method Details

    • encode

      <T> byte[] encode(T object)
      Serialize the specified object.
      Type Parameters:
      T - encoded type
      Parameters:
      object - object to serialize.
      Returns:
      serialized bytes.
    • decode

      <T> T decode(byte[] bytes)
      Deserialize the specified bytes.
      Type Parameters:
      T - decoded type
      Parameters:
      bytes - byte array to deserialize.
      Returns:
      deserialized object.