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.

@FunctionalInterface public interface Deserializer<T>
Defines a custom strategy for deserializing a List, String, or Map into a specific Java type T.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Converts a NestedText-compatible object into a Java object of type T.
  • Method Details

    • deserialize

      T deserialize(Object value, DeserializationContext context)
      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.