public final class TruePredicate<T> extends Object implements Predicate<T>, Serializable
Modifier and Type | Field and Description |
---|---|
static Predicate |
INSTANCE
Singleton predicate instance
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(T object)
Evaluates the predicate returning true always.
|
static <T> Predicate<T> |
truePredicate()
Factory returning the singleton instance.
|
public static <T> Predicate<T> truePredicate()
T
- the type that the predicate queriesCopyright © 2001–2019 The Apache Software Foundation. All rights reserved.