public final class ExceptionClosure<E> extends java.lang.Object implements Closure<E>, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static Closure |
INSTANCE
Singleton predicate instance
|
private static long |
serialVersionUID
Serial version UID
|
Modifier | Constructor and Description |
---|---|
private |
ExceptionClosure()
Restricted constructor.
|
Modifier and Type | Method and Description |
---|---|
static <E> Closure<E> |
exceptionClosure()
Factory returning the singleton instance.
|
void |
execute(E input)
Always throw an exception.
|
private java.lang.Object |
readResolve() |
private static final long serialVersionUID
public static final Closure INSTANCE
public static <E> Closure<E> exceptionClosure()
E
- the type that the closure acts onpublic void execute(E input)
execute
in interface Closure<E>
input
- the input objectFunctorException
- alwaysprivate java.lang.Object readResolve()