| Modifier and Type | Field and Description |
|---|---|
| private final Closure | iClosures
The closures to call in turn |
| private static final long | serialVersionUID
Serial version UID |
| Access | Constructor and Description |
|---|---|
| private | ChainedClosure(final boolean
if clone, final Closure<? super E>... true the input argument will be clonedthe closures to chain, no nulls closures)Hidden constructor for the use by the static factory methods. |
| public | ChainedClosure(final Closure<? super E>...
the closures to chain, copied, no nulls closures)Constructor that performs no validation. |
| Modifier and Type | Method and Description |
|---|---|
| public static < the type that the closure acts on E> Closure | Returns: thechained closurethe closures to chain, copied, no nulls closures)Factory method that performs validation and copies the parameter array. |
| public static < the type that the closure acts on E> Closure | Returns: thechained closurea collection of closures to chain closures)Create a new Closure that calls each closure in turn, passing the result into the next closure. |
| public void | execute(final E
the input object passed to each closure input)Implements org. |
| public Closure |
| iClosures | back to summary |
|---|---|
| private final Closure<? super E>[] iClosures The closures to call in turn | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Serial version UID | |
| ChainedClosure | back to summary |
|---|---|
| private ChainedClosure(final boolean clone, final Closure<? super E>... closures) Hidden constructor for the use by the static factory methods.
| |
| ChainedClosure | back to summary |
|---|---|
| public ChainedClosure(final Closure<? super E>... closures) Constructor that performs no validation.
Use
| |
| chainedClosure | back to summary |
|---|---|
| public static <E> Closure Factory method that performs validation and copies the parameter array.
| |
| chainedClosure | back to summary |
|---|---|
| public static <E> Closure Create a new Closure that calls each closure in turn, passing the result into the next closure. The ordering is that of the iterator() method on the collection.
| |
| execute | back to summary |
|---|---|
| public void execute(final E input) Implements org. Execute a list of closures.
| |
| getClosures | back to summary |
|---|---|
| public Closure Gets the closures.
| |