Interface FieldSerialiser.TriFunction<R>

  • Type Parameters:
    R - generic return type
    Enclosing class:
    FieldSerialiser<R>

    public static interface FieldSerialiser.TriFunction<R>
    used as lambda expression for user-level code to return new object data (read-case) from the given serialiser back-end implementation
    Author:
    rstein
    • Method Detail

      • apply

        R apply​(IoSerialiser ioSerialiser,
                java.lang.Object rootObj,
                ClassFieldDescription field)
        Performs this operation on the given arguments.
        Parameters:
        ioSerialiser - the reference to the calling IoSerialiser
        rootObj - the specific root object reference the given field is part of
        field - the description for the given class member, if null then rootObj is written/read directly
        Returns:
        The value of the field which is either taken from rootObj if present or compatible or newly allocated otherwise