Package org.wildfly.clustering.function
Interface BiPredicate<T,U>
- Type Parameters:
T- the first parameter typeU- the second parameter type
- All Superinterfaces:
BiPredicate<T,U>
- All Known Implementing Classes:
BiPredicate.SimpleBiPredicate
An enhanced binary predicate.
- Author:
- Paul Ferraro
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic <T,U> BiPredicate<T, U> always()Returns a predicate that always accepts its arguments.default BiPredicate<T,U> and(BiPredicate<? super T, ? super U> other) static <T,U> BiPredicate<T, U> Returns a binary predicate composed using the conjunction of two unary predicates.static <T,U> BiPredicate<T, U> Returns a binary predicate from a predicate that tests the first parameter only.static <T,U> BiPredicate<T, U> Returns a binary predicate from a predicate that tests the second parameter only.default BiPredicate<T,U> negate()static <T,U> BiPredicate<T, U> never()Returns a predicate that never accepts its arguments.default BiPredicate<T,U> or(BiPredicate<? super T, ? super U> other) static <T,U> BiPredicate<T, U> Returns a binary predicate composed using the disjunction of two unary predicates.default BiPredicate<U,T> reverse()Returns a predicate that processes this predicate with reversed parameter order.Methods inherited from interface java.util.function.BiPredicate
test
-
Field Details
-
ALWAYS
-
NEVER
-
-
Method Details
-
and
- Specified by:
andin interfaceBiPredicate<T,U>
-
negate
- Specified by:
negatein interfaceBiPredicate<T,U>
-
or
- Specified by:
orin interfaceBiPredicate<T,U>
-
reverse
Returns a predicate that processes this predicate with reversed parameter order.- Returns:
- a predicate that processes this predicate with reversed parameter order.
-
always
Returns a predicate that always accepts its arguments.- Type Parameters:
T- the first parameter typeU- the second parameter type- Returns:
- a predicate that always accepts its arguments.
-
never
Returns a predicate that never accepts its arguments.- Type Parameters:
T- the first parameter typeU- the second parameter type- Returns:
- a predicate that never accepts its arguments.
-
former
Returns a binary predicate from a predicate that tests the first parameter only.- Type Parameters:
T- the first parameter typeU- the second parameter type- Parameters:
predicate- the predicate for the first parameter- Returns:
- a binary predicate from a predicate that tests the first parameter only.
-
latter
Returns a binary predicate from a predicate that tests the second parameter only.- Type Parameters:
T- the first parameter typeU- the second parameter type- Parameters:
predicate- the predicate for the first parameter- Returns:
- a binary predicate from a predicate that tests the first parameter only.
-
and
Returns a binary predicate composed using the conjunction of two unary predicates.- Type Parameters:
T- the first parameter typeU- the second parameter type- Parameters:
predicate1- the predicate for the first parameterpredicate2- the predicate for the second parameter- Returns:
- a binary predicate composed using the conjunction of two unary predicates.
-
or
Returns a binary predicate composed using the disjunction of two unary predicates.- Type Parameters:
T- the first parameter typeU- the second parameter type- Parameters:
predicate1- the predicate for the first parameterpredicate2- the predicate for the second parameter- Returns:
- a binary predicate composed using the disjunction of two unary predicates.
-