public final class ExceptionPredicate<T> extends java.lang.Object implements Predicate<T>, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static Predicate |
INSTANCE
Singleton predicate instance
|
private static long |
serialVersionUID
Serial version UID
|
Modifier | Constructor and Description |
---|---|
private |
ExceptionPredicate()
Restricted constructor.
|
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.
|
private java.lang.Object |
readResolve() |
private static final long serialVersionUID
public static final Predicate INSTANCE
public static <T> Predicate<T> exceptionPredicate()
T
- the object typepublic boolean evaluate(T object)
evaluate
in interface Predicate<T>
object
- the input objectFunctorException
- alwaysprivate java.lang.Object readResolve()