Class Serializer.Default<M>

java.lang.Object
one.microstream.persistence.binary.util.Serializer.Default<M>
All Implemented Interfaces:
AutoCloseable, Serializer<M>
Enclosing interface:
Serializer<M>

public static class Serializer.Default<M>
extends Object
implements Serializer<M>
  • Method Details

    • serialize

      public M serialize​(Object object)
      Description copied from interface: Serializer
      Serializes the given object graph into the medium type.
      Specified by:
      serialize in interface Serializer<M>
      Parameters:
      object - the graph's root
      Returns:
      the binary format
    • deserialize

      public <T> T deserialize​(M data)
      Description copied from interface: Serializer
      Recreates an object graph based on the given data.
      Specified by:
      deserialize in interface Serializer<M>
      Type Parameters:
      T - the object's type
      Parameters:
      data - the medium to read from
      Returns:
      the deserialized object graph
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable