Top Description Fields Constructors Methods
org.apache.commons.collections4.functors

public final Class ExceptionPredicate<T>

extends Object
implements Predicate<T>, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.apache.commons.collections4.Predicate
Imports
java.io.Serializable, org.apache.commons.collections4.FunctorException, .Predicate

Predicate implementation that always throws an exception.
Since
3.0

Field Summary

Modifier and TypeField and Description
public static final Predicate<T>
INSTANCE

Singleton predicate instance

private static final long
serialVersionUID

Serial version UID

Constructor Summary

AccessConstructor and Description
private
ExceptionPredicate()

Restricted constructor.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

never
evaluate
(final T
the input object
object
)

Implements org.apache.commons.collections4.Predicate.evaluate.

Evaluates the predicate always throwing an exception.
public static <
the object type
T
>
Predicate<T>

Returns:

the singleton instance
exceptionPredicate
()

Factory returning the singleton instance.

private Object
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final Predicate<T> INSTANCE

Singleton predicate instance

Annotations
@SuppressWarnings:rawtypes
serialVersionUIDback to summary
private static final long serialVersionUID

Serial version UID

Constructor Detail

ExceptionPredicateback to summary
private ExceptionPredicate()

Restricted constructor.

Method Detail

evaluateback to summary
public boolean evaluate(final T object)

Implements org.apache.commons.collections4.Predicate.evaluate.

Evaluates the predicate always throwing an exception.

Parameters
object:T

the input object

Returns:boolean

never

Annotations
@Override
Exceptions
FunctorException:
always
exceptionPredicateback to summary
public static <T> Predicate<T> exceptionPredicate()

Factory returning the singleton instance.

Parameters
<T>
the object type
Returns:Predicate<T>

the singleton instance

Since
3.1
readResolveback to summary
private Object readResolve()