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>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface one.microstream.persistence.binary.util.Serializer
Serializer.Default<M>, Serializer.Source, Serializer.Static, Serializer.Target
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()<T> Tdeserialize(M data)Recreates an object graph based on the given data.Mserialize(Object object)Serializes the given object graph into the medium type.
-
-
-
Method Detail
-
serialize
public M serialize(Object object)
Description copied from interface:SerializerSerializes the given object graph into the medium type.- Specified by:
serializein interfaceSerializer<M>- Parameters:
object- the graph's root- Returns:
- the binary format
-
deserialize
public <T> T deserialize(M data)
Description copied from interface:SerializerRecreates an object graph based on the given data.- Specified by:
deserializein interfaceSerializer<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:
closein interfaceAutoCloseable
-
-