static <T,R> CondFunction<T,R> |
When.is(Predicate<? super T> pred,
Function<? super T,? extends R> func) |
Creates a conditional function from a predicate and a function.
|
static <T,R> CondFunction<T,R> |
CondFunction.of(Predicate<? super T> pred,
Function<? super T,? extends R> func) |
Constructs a conditional function from a predicate and a function argument.
|
default CondFunction<T,R> |
CondFunction.orElse(Function<? super T,? extends R> func) |
Returns a combined conditional function.
|
default CondFunction<T,R> |
CondFunction.orElseIf(Predicate<? super T> pred,
Function<? super T,? extends R> func) |
Returns a combined conditional function.
|
static <T,R> CondFunction<T,R> |
When.otherwise(Function<? super T,? extends R> func) |
Creates a conditional function from a function and with a
test predicate always returning true
|