@Deprecated public abstract class Predicates extends Object
Modifier | Constructor and Description |
---|---|
protected |
Predicates()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static <T> Predicate<T> |
always()
Deprecated.
Returns a Predicate which always evaluates to true.
|
static <T> Predicate<T> |
and(Predicate<? super T>... predicates)
Deprecated.
Returns a Predicate which evaluates to true only if all the provided predicates evaluate to
true.
|
static <T> Predicate<T> |
negate(Predicate<? super T> p)
Deprecated.
Returns a Predicate which negates the given Predicate.
|
static <T> Predicate<T> |
never()
Deprecated.
Returns a Predicate which always evaluates to false.
|
static <T> Predicate<T> |
or(Predicate<? super T> p1,
Predicate<? super T> p2)
Deprecated.
Returns a Predicate which evaluates to true if either this predicate or the provided
predicate
evaluate to true.
|
static <T> Predicate<T> |
xor(Predicate<? super T> p1,
Predicate<? super T> p2)
Deprecated.
Returns a Predicate which evaluates to true if either both Predicate Predicates
return true or neither of them do.
|
public static <T> Predicate<T> never()
T
- the type handled by the predicatepublic static <T> Predicate<T> always()
T
- the type handled by the predicatepublic static <T> Predicate<T> and(Predicate<? super T>... predicates)
predicates
- Predicate Predicates which will be ANDed together.public static <T> Predicate<T> negate(Predicate<? super T> p)
p
- the Predicate to negatepublic static <T> Predicate<T> or(Predicate<? super T> p1, Predicate<? super T> p2)
p1
- A Predicate which will be ORed together with p2.p2
- A Predicate which will be ORed together with p1.public static <T> Predicate<T> xor(Predicate<? super T> p1, Predicate<? super T> p2)
p1
- A Predicate which will be XORed together with p2.p2
- A Predicate which will be XORed together with p1.Copyright © 2017. All rights reserved.