public final class BiPredicates extends Object
BiPredicate interface.| Modifier and Type | Method and Description |
|---|---|
static <T,U> BiPredicate<T,U> |
and(BiPredicate<? super T,? super U> this_,
BiPredicate<? super T,? super U> other)
Returns a composed predicate that represents a short-circuiting logical
AND of the
this_ predicate and another. |
static <T,U> BiPredicate<T,U> |
negate(BiPredicate<? super T,? super U> this_)
Returns a predicate that represents the logical negation of the
this_
predicate. |
static <T,U> BiPredicate<T,U> |
or(BiPredicate<? super T,? super U> this_,
BiPredicate<? super T,? super U> other)
Returns a composed predicate that represents a short-circuiting logical
OR of the
this_ predicate and another. |
public static <T,U> BiPredicate<T,U> and(BiPredicate<? super T,? super U> this_, BiPredicate<? super T,? super U> other)
this_ predicate and another. When evaluating the composed
predicate, if the this_ predicate is false, then the other
predicate is not evaluated.
Any exceptions thrown during evaluation of either predicate are relayed
to the caller; if evaluation of the this_ predicate throws an exception, the
other predicate will not be evaluated.
T - the type of the first argument to the predicateU - the type of the second argument to the predicatethis_ - a predicate that will be logically-ANDed with the other predicateother - a predicate that will be logically-ANDed with the this_
predicatethis_ predicate and the other predicateNullPointerException - if this_ is nullNullPointerException - if other is nullpublic static <T,U> BiPredicate<T,U> negate(BiPredicate<? super T,? super U> this_)
this_
predicate.T - the type of the first argument to the predicateU - the type of the second argument to the predicatethis_ - the BiPredicate to be negatedthis_
predicateNullPointerException - if this_ is nullpublic static <T,U> BiPredicate<T,U> or(BiPredicate<? super T,? super U> this_, BiPredicate<? super T,? super U> other)
this_ predicate and another. When evaluating the composed
predicate, if the this_ predicate is true, then the other
predicate is not evaluated.
Any exceptions thrown during evaluation of either predicate are relayed
to the caller; if evaluation of the this_ predicate throws an exception, the
other predicate will not be evaluated.
T - the type of the first argument to the predicateU - the type of the second argument to the predicatethis_ - a predicate that will be logically-ORed with other predicateother - a predicate that will be logically-ORed with this_
predicatethis_ predicate and the other predicateNullPointerException - if this_ is nullNullPointerException - if other is nullCopyright © 2015. All rights reserved.