T - the type of the first argument to test.U - the type of the second argument to test.@FunctionalInterface public interface BiPredicate<T,U>
Predicate.Predicate| Modifier and Type | Method and Description |
|---|---|
default BiPredicate<T,U> |
and(BiPredicate<? super T,? super U> p)
Returns a predicate which evaluates to
true only if this
predicate and the provided predicate both evaluate to true. |
default BiPredicate<T,U> |
negate()
Returns a predicate which negates the result of this predicate.
|
default BiPredicate<T,U> |
or(BiPredicate<? super T,? super U> p)
Returns a predicate which evaluates to
true if either this
predicate or the provided predicate evaluates to true. |
boolean |
test(T t,
U u)
Return
true if the inputs match some criteria. |
default BiPredicate<T,U> |
xor(BiPredicate<? super T,? super U> p)
Returns a predicate that evaluates to
true if both or neither of
the component predicates evaluate to true. |
boolean test(T t, U u)
true if the inputs match some criteria.t - an input object.u - an input object.true if the inputs match some criteria.default BiPredicate<T,U> and(BiPredicate<? super T,? super U> p)
true only if this
predicate and the provided predicate both evaluate to true. If
this predicate returns false then the remaining predicate is not
evaluated.p - a predicate which will be logically-ANDed with this predicate.true only if both
predicates return true.default BiPredicate<T,U> negate()
default BiPredicate<T,U> or(BiPredicate<? super T,? super U> p)
true if either this
predicate or the provided predicate evaluates to true. If this
predicate returns true then the remaining predicate is not
evaluated.p - a predicate which will be logically-ORed with this predicate.true if either predicate
returns true.default BiPredicate<T,U> xor(BiPredicate<? super T,? super U> p)
true if both or neither of
the component predicates evaluate to true.p - a predicate which will be logically-XORed with this predicate.true if both or neither of
the component predicates evaluate to true. Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.
DRAFT internal-0