T
- The type of the first argument to the predicate.U
- The type of the second argument the predicate.V
- The type of the third argument the predicate.@FunctionalInterface public interface TriPredicate<T,U,V>
Predicate
.Predicate
Modifier and Type | Method and Description |
---|---|
default TriPredicate<T,U,V> |
and(TriPredicate<? super T,? super U,? super V> other)
Returns a composed predicate that represents a short-circuiting logical AND
of this predicate and another.
|
default TriPredicate<T,U,V> |
negate()
Returns a predicate that represents the logical negation of this predicate.
|
default TriPredicate<T,U,V> |
or(TriPredicate<? super T,? super U,? super V> other)
Returns a composed predicate that represents a short-circuiting logical OR
of this predicate and another.
|
boolean |
test(T t,
U u,
V v)
Evaluates this predicate on the given arguments.
|
boolean test(T t, U u, V v)
t
- The first input argument.u
- The second input argument.v
- The third input argument.true
if the input arguments match the predicate, otherwise
false
.default TriPredicate<T,U,V> and(TriPredicate<? super T,? super U,? super V> 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 predicate.other
predicate.NullPointerException
- If other
is null.default TriPredicate<T,U,V> negate()
default TriPredicate<T,U,V> or(TriPredicate<? super T,? super U,? super V> 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 predicate.other
predicate.NullPointerException
- If other is null.Copyright © 2020 LibJ. All rights reserved.