Interface FieldData.Deserializer<I>

  • Type Parameters:
    I - intermediate data type
    Enclosing class:
    FieldData<I,​O>
    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 static interface FieldData.Deserializer<I>
    A deserialization handler to appropriately place object data into fields.
    Since:
    4.0.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void accept​(I intermediate, @Nullable java.lang.Object newValue, java.util.function.Supplier<@Nullable java.lang.Object> implicitInitializer)
      Apply either a new value or implicit initializer to the intermediate object as appropriate.
    • Method Detail

      • accept

        void accept​(I intermediate,
                    @Nullable java.lang.Object newValue,
                    java.util.function.Supplier<@Nullable java.lang.Object> implicitInitializer)
        Apply either a new value or implicit initializer to the intermediate object as appropriate.
        Parameters:
        intermediate - the intermediate container
        newValue - new value to store
        implicitInitializer - the implicit initializer
        Since:
        4.0.0