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

public final Class ExceptionClosure<E>

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

Closure implementation that always throws an exception.
Since
3.0

Field Summary

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

Singleton predicate instance

private static final long
serialVersionUID

Serial version UID

Constructor Summary

AccessConstructor and Description
private
ExceptionClosure()

Restricted constructor.

Method Summary

Modifier and TypeMethod and Description
public static <
the type that the closure acts on
E
>
Closure<E>

Returns:

the singleton instance
exceptionClosure
()

Factory returning the singleton instance.

public void
execute(final E
the input object
input
)

Implements org.apache.commons.collections4.Closure.execute.

Always throw an exception.
private Object
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final Closure<T> INSTANCE

Singleton predicate instance

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

Serial version UID

Constructor Detail

ExceptionClosureback to summary
private ExceptionClosure()

Restricted constructor.

Method Detail

exceptionClosureback to summary
public static <E> Closure<E> exceptionClosure()

Factory returning the singleton instance.

Parameters
<E>
the type that the closure acts on
Returns:Closure<E>

the singleton instance

Since
3.1
executeback to summary
public void execute(final E input)

Implements org.apache.commons.collections4.Closure.execute.

Always throw an exception.

Parameters
input:E

the input object

Annotations
@Override
Exceptions
FunctorException:
always
readResolveback to summary
private Object readResolve()