T - The type of the operands and result of the operator@FunctionalInterface public interface Operator3<T> extends Function3<T,T,T,T>
Function3
for the case where the operands and the result are all of the same type.
This is a functional interface whose functional method is
Function3.apply(Object, Object, Object).
Function3,
UnaryOperator| Modifier and Type | Method and Description |
|---|---|
static <T> Operator3<T> |
conditional(java.util.function.Predicate<? super T> predicate)
Returns an operator which returns either the second or third argument based
on whether the
predicate returns true or false on the
first argument respectively. |
static <T> Operator3<T> conditional(java.util.function.Predicate<? super T> predicate)
predicate returns true or false on the
first argument respectively.T - The type of the input argument of the predicatepredicate - A Predicate for testing a specific valuepredicate.java.lang.NullPointerException - If the predicate is null