Class TypedSerializer.Default<M>
java.lang.Object
one.microstream.persistence.binary.util.TypedSerializer.Default<M>
- All Implemented Interfaces:
AutoCloseable
,Serializer<M>
,TypedSerializer<M>
- Enclosing interface:
- TypedSerializer<M>
public static class TypedSerializer.Default<M> extends Object implements TypedSerializer<M>
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.persistence.binary.util.Serializer
Serializer.Source, Serializer.Target
Nested classes/interfaces inherited from interface one.microstream.persistence.binary.util.TypedSerializer
TypedSerializer.Default<M>, TypedSerializer.Static
-
Method Summary
-
Method Details
-
serialize
Description copied from interface:Serializer
Serializes the given object graph into the medium type.- Specified by:
serialize
in interfaceSerializer<M>
- Parameters:
object
- the graph's root- Returns:
- the binary format
-
deserialize
Description copied from interface:Serializer
Recreates an object graph based on the given data.- Specified by:
deserialize
in 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:
close
in interfaceAutoCloseable
-