Interface Deserializer<T,S>

Type Parameters:
T - the type of the reconstructed domain object
S - 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.

@FunctionalInterface public interface Deserializer<T,S>
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 Type
    Method
    Description
    deserialize(S data)
    Deserializes the provided data into a domain object instance.
  • Method Details

    • deserialize

      @Nullable T deserialize(@Nullable S data)
      Deserializes the provided data into a domain object instance.
      Parameters:
      data - the serialized data, may be null
      Returns:
      the reconstructed object of type T, or null if deserialization fails or input is invalid