public final class Predicates
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static Predicate |
IsNotNullPredicate |
private static Predicate |
IsNullPredicate |
Modifier | Constructor and Description |
---|---|
private |
Predicates() |
Modifier and Type | Method and Description |
---|---|
static <E> Predicate<E> |
newIsNotNullPredicate()
Creates a Predicate that checks if the passed object is not null.
|
static <E> Predicate<E> |
newIsNullPredicate()
Creates a Predicate that checks if the passed object is null.
|
private static final Predicate IsNullPredicate
private static final Predicate IsNotNullPredicate
public static <E> Predicate<E> newIsNullPredicate()
public static <E> Predicate<E> newIsNotNullPredicate()