public final class ExceptionClosure<E> extends Objectimplements Closure <E>, Serializable
| Modifier and Type | Field and Description |
|---|---|
static Closure |
INSTANCE
Singleton predicate instance
|
| Modifier and Type | Method and Description |
|---|---|
static <E> Closure |
exceptionClosure()
Factory returning the singleton instance.
|
void |
execute(E input)
Always throw an exception.
|
public static final ClosureINSTANCE
public static <E> Closure<E> exceptionClosure()
E - the type that the closure acts on
public void execute(E input)
execute in interface
Closure<E>
input - the input object
FunctorException - always