SOURCE_TYPE - the in-bound type of the functionTARGET_TYPE - the out-bound type of the functionpublic interface ChainFunction<SOURCE_TYPE,TARGET_TYPE>
extends java.util.function.Function<SOURCE_TYPE,java.util.Optional<TARGET_TYPE>>
Optional-wrapped value to another ChainFunction if its
own execution returns empty.
This is functional interface whose functional method is Function.apply(Object).
Function| Modifier and Type | Method and Description |
|---|---|
default ChainFunction<SOURCE_TYPE,TARGET_TYPE> |
orElse(ChainFunction<SOURCE_TYPE,TARGET_TYPE> orElse)
Enablement of the chaining of a
ChainFunction by specifying the delegation to another candidate at the orElse phase. |
default ChainFunction<SOURCE_TYPE,TARGET_TYPE> orElse(ChainFunction<SOURCE_TYPE,TARGET_TYPE> orElse)
ChainFunction by specifying the delegation to another candidate at the orElse phase.orElse - a ChainFunctionCopyright © 2018 SAP SE. All Rights Reserved.