Package org.loxlylabs.nestedtext
Interface Deserializer<T>
- Type Parameters:
T- The target Java type this deserializer is responsible for creating.
- 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 custom strategy for deserializing a List, String, or Map into a
specific Java type
T.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize(Object value, DeserializationContext context) Converts a NestedText-compatible object into a Java object of type T.
-
Method Details
-
deserialize
Converts a NestedText-compatible object into a Java object of type T.- Parameters:
value- The object (either a Map, List, String).context- the deserialization context- Returns:
- The deserialized Java object.
-