Interface BiPredicate<T,U>
- Type Parameters:
T- the first input typeU- the second input type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A test of two arguments; the two-argument form of
Predicate.-
Method Summary
Modifier and TypeMethodDescriptiondefault BiPredicate<T, U> and(BiPredicate<? super T, ? super U> other) Passes when this andotherboth pass;otheris not asked when this fails.default BiPredicate<T, U> negate()Passes when this fails.default BiPredicate<T, U> or(BiPredicate<? super T, ? super U> other) Passes when this orotherpasses;otheris not asked when this passes.booleanWhethertandupass.
-
Method Details
-
test
-
and
Passes when this andotherboth pass;otheris not asked when this fails.- Parameters:
other- the second test- Returns:
- the composed test
-
negate
-
or
Passes when this orotherpasses;otheris not asked when this passes.- Parameters:
other- the second test- Returns:
- the composed test
-