T1 - The type of the first argument to the predicateT2 - The type of the second argument the predicatepublic interface Predicate2<T1,T2>
extends java.util.function.BiPredicate<T1,T2>
Predicate. This is an extension over
the current BiPredicate to allow boxing of the interface.
This is a functional interface whose functional method is
BiPredicate.test(Object, Object).
Predicate,
BiPredicate| Modifier and Type | Method and Description |
|---|---|
default Predicate2<T1,T2> |
and(java.util.function.BiPredicate<? super T1,? super T2> other) |
default java.util.function.BiFunction<T1,T2,java.lang.Boolean> |
boxed()
Returns a
BiFunction with the result boxed to a Boolean. |
default Predicate2<T1,T2> |
negate() |
default Predicate2<T1,T2> |
or(java.util.function.BiPredicate<? super T1,? super T2> other) |
static <T1,T2> Predicate2<T1,T2> |
wrap(java.util.function.BiPredicate<T1,T2> predicate)
Wraps a predicate instance to provide library features for
BiPredicate. |
static <T1,T2> Predicate2<T1,T2> wrap(java.util.function.BiPredicate<T1,T2> predicate)
BiPredicate.T1 - The type of the first argument to the predicateT2 - The type of the second argument to the predicatepredicate - The predicate instance to be wrappedPredicate2default Predicate2<T1,T2> and(java.util.function.BiPredicate<? super T1,? super T2> other)
default Predicate2<T1,T2> negate()
default Predicate2<T1,T2> or(java.util.function.BiPredicate<? super T1,? super T2> other)