Interface TriPredicate<T,U,V>
-
- Type Parameters:
T- the type of the first object parameterU- the type of the second object parameterV- the type of the third object parameter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface TriPredicate<T,U,V>
A predicate that takes three arguments.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default TriPredicate<T,U,V>and(TriPredicate<? super T,? super U,? super V> other)Returns a new predicate that returns true if both predicates return true.default TriPredicate<T,U,V>negate()Returns a new predicate that negates the result of this predicate.default TriPredicate<T,U,V>or(TriPredicate<? super T,? super U,? super V> other)Returns a new predicate that returns true if either predicates returns true.booleantest(T t, U u, V v)Applies this predicate to the given arguments.
-
-
-
Method Detail
-
test
boolean test(T t, U u, V v)
Applies this predicate to the given arguments.- Parameters:
t- the first predicate argumentu- the second predicate argumentv- the third predicate argument- Returns:
- whether the predicate matches
-
and
default TriPredicate<T,U,V> and(TriPredicate<? super T,? super U,? super V> other)
Returns a new predicate that returns true if both predicates return true.The second predicate is only invoked if the first returns true.
- Parameters:
other- the second predicate- Returns:
- the combined predicate, "this AND that"
-
or
default TriPredicate<T,U,V> or(TriPredicate<? super T,? super U,? super V> other)
Returns a new predicate that returns true if either predicates returns true.The second predicate is only invoked if the first returns false.
- Parameters:
other- the second predicate- Returns:
- the combined predicate, "this OR that"
-
negate
default TriPredicate<T,U,V> negate()
Returns a new predicate that negates the result of this predicate.- Returns:
- the predicate, "NOT this"
-
-