T1 - The type of the first argument to the predicateT2 - The type of the second argument to the predicateT3 - The type of the third argument to the predicate@FunctionalInterface
public interface TriPredicate<T1,T2,T3>
Predicate.
This is a functional interface whose functional method is
test(Object, Object, Object).
Predicate| Modifier and Type | Method and Description |
|---|---|
default TriPredicate<T1,T2,T3> |
and(TriPredicate<? super T1,? super T2,? super T3> other)
Returns a composed predicate that represents a short-circuiting logical
AND of this predicate and another.
|
default TriPredicate<T1,T2,T3> |
negate()
Returns a predicate that represents the logical negation of this
predicate.
|
default TriPredicate<T1,T2,T3> |
or(TriPredicate<? super T1,? super T2,? super T3> other)
Returns a composed predicate that represents a short-circuiting logical
OR of this predicate and another.
|
boolean |
test(T1 t1,
T2 t2,
T3 t3)
Evaluates this predicate on the given arguments.
|
boolean test(T1 t1, T2 t2, T3 t3)
t1 - The first input argumentt2 - The second input argumentt3 - The third input argumenttrue if the input arguments matches the predicate,
otherwise falsedefault TriPredicate<T1,T2,T3> and(TriPredicate<? super T1,? super T2,? super T3> other)
false, then the other
predicate is not evaluated.
Any exceptions thrown during evaluation of either predicate are relayed
to the caller; if evaluation of this predicate throws an exception, the
other predicate will not be evaluated.
other - A predicate that will be logically-ANDed with this
predicateother predicatejava.lang.NullPointerException - If other is nulldefault TriPredicate<T1,T2,T3> negate()
default TriPredicate<T1,T2,T3> or(TriPredicate<? super T1,? super T2,? super T3> other)
true, then the other
predicate is not evaluated.
Any exceptions thrown during evaluation of either predicate are relayed
to the caller; if evaluation of this predicate throws an exception, the
other predicate will not be evaluated.
other - A predicate that will be logically-ORed with this
predicateother predicatejava.lang.NullPointerException - If other is null