Interface Deserializer<T,S>
- Type Parameters:
T- the type of the reconstructed domain objectS- the type of the serialized representation
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Defines a functional contract for reconstructing domain objects
from their serialized representations.
Note: This is an experimental feature and is currently considered unstable.
Implementations are responsible for converting raw or encoded data
(such as a Map<String, Object>) back into strongly-typed domain instances.
- Since:
- 0.3
- Author:
- a8kj7sea
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize(S data) Deserializes the provided data into a domain object instance.
-
Method Details
-
deserialize
Deserializes the provided data into a domain object instance.- Parameters:
data- the serialized data, may benull- Returns:
- the reconstructed object of type
T, ornullif deserialization fails or input is invalid
-