public final class Predicates extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> Predicate<T> |
assignableFrom(Class cls)
Predicate that evaluates to true if the class being tested is assignable from the given class.
|
static <T> Predicate<T> |
instanceOf(Class cls)
Predicate that evaluates to true if the class being tested is assignable to the given class.
|
static <T> Predicate<T> |
isNotNull()
Predicate that checks value for null.
|
static <T> Predicate<T> |
isNull()
Predicate that checks value for null.
|
static <T> Predicate<T> |
not(Predicate<T> predicate)
Inverts result of predicate.
|
public static <T> Predicate<T> not(Predicate<T> predicate)
T - Value type.predicate - Predicate to invert result.public static <T> Predicate<T> isNull()
T - Value type.public static <T> Predicate<T> isNotNull()
T - Value type.public static <T> Predicate<T> instanceOf(Class cls)
T - Value type.cls - Class to be tested against.public static <T> Predicate<T> assignableFrom(Class cls)
T - Value type.cls - Class to be tested against.Copyright © 2018. All rights reserved.