public final class ExceptionPredicate<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 always throwing an exception.
|
static <T> Predicate<T> |
exceptionPredicate()
Factory returning the singleton instance.
|
public static <T> Predicate<T> exceptionPredicate()
T
- the object typeCopyright © 2001–2018 The Apache Software Foundation. All rights reserved.