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 predicateT4 - The type of the fourth argument to the predicate@FunctionalInterface
public interface Predicate4<T1,T2,T3,T4>
Predicate.
This is a functional interface whose functional method is
test(Object, Object, Object, Object).
Predicate| Modifier and Type | Method and Description |
|---|---|
default Predicate4<T1,T2,T3,T4> |
and(Predicate4<? super T1,? super T2,? super T3,? super T4> other)
Returns a composed predicate that represents a short-circuiting logical
AND of this predicate and another.
|
default Function4<T1,T2,T3,T4,java.lang.Boolean> |
boxed()
Returns a
Function4 with the result boxed to a Boolean. |
default Predicate4<T1,T2,T3,T4> |
negate()
Returns a predicate that represents the logical negation of this
predicate.
|
default Predicate4<T1,T2,T3,T4> |
or(Predicate4<? super T1,? super T2,? super T3,? super T4> 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,
T4 t4)
Evaluates this predicate on the given arguments.
|
boolean test(T1 t1, T2 t2, T3 t3, T4 t4)
t1 - The first input argumentt2 - The second input argumentt3 - The third input argumentt4 - The fourth input argumenttrue if the input arguments matches the predicate,
otherwise falsedefault Predicate4<T1,T2,T3,T4> and(Predicate4<? super T1,? super T2,? super T3,? super T4> 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 Predicate4<T1,T2,T3,T4> negate()
default Predicate4<T1,T2,T3,T4> or(Predicate4<? super T1,? super T2,? super T3,? super T4> 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