Interface ChainFunction<SOURCE_TYPE,​TARGET_TYPE>

  • Type Parameters:
    SOURCE_TYPE - the in-bound type of the function
    TARGET_TYPE - the out-bound type of the function
    All Superinterfaces:
    java.util.function.Function<SOURCE_TYPE,​java.util.Optional<TARGET_TYPE>>

    public interface ChainFunction<SOURCE_TYPE,​TARGET_TYPE>
    extends java.util.function.Function<SOURCE_TYPE,​java.util.Optional<TARGET_TYPE>>
    Represents a function that will delegate its returned Optional-wrapped value to another ChainFunction if its own execution returns empty.

    This is functional interface whose functional method is Function.apply(Object).

    See Also:
    Function