Package org.alfresco.util
Interface TriPredicate<T,U,V>
- Type Parameters:
T- - type of the first argument to the predicateU- - type of the second argument the predicateV- - type of the third argument the predicate
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents a predicate (boolean-valued function) of three arguments. This is the three-arity specialization of Predicate. This is a functional interface whose functional method is test(Object, Object, Object).
-
Method Summary
Modifier and TypeMethodDescriptiondefault TriPredicate<T,U, V> and(TriPredicate<? super T, ? super U, ? super V> other) Creates a composed predicate that represents a logical AND of this predicate and another.default TriPredicate<T,U, V> negate()default TriPredicate<T,U, V> or(TriPredicate<? super T, ? super U, ? super V> other) Creates a composed predicate that represents a logical OR of this predicate and another.booleanEvaluates this predicate on the given arguments.
-
Method Details
-
test
Evaluates this predicate on the given arguments.- Parameters:
t- - first input argumentu- - second input argumentv- - third input argument- Returns:
- true if the input arguments match the predicate, otherwise false
-
and
Creates a composed predicate that represents a logical AND of this predicate and another.- Parameters:
other- - predicate that will be logically-ANDed with this predicate- Returns:
- composed predicate
-
negate
- Returns:
- a predicate that represents the logical negation of this predicate
-
or
Creates a composed predicate that represents a logical OR of this predicate and another.- Parameters:
other- - predicate that will be logically-ORed with this predicate- Returns:
- composed predicate
-