java.lang.Object | +--org.apache.commons.collections.functors.ChainedClosureAll Implemented Interfaces:
ChainedClosure(Closure[] closures) Constructor that performs no validation. |
void | execute(Object input) Execute a list of closures. |
static Closure | getInstance(Closure[] closures) Factory method that performs validation and copies the parameter array. |
static Closure | getInstance(Collection closures) Create a new Closure that calls each closure in turn, passing the result into the next closure. |
static Closure | getInstance(Closure closure1, Closure closure2) Factory method that performs validation. |
public ChainedClosure(Closure[] closures)
getInstance
if you want that.
public void execute(Object input)
public static Closure getInstance(Collection closures)
- if the closures collection is null
- if any closure in the collection is nullpublic static Closure getInstance(Closure closure1, Closure closure2)
- if either closure is nullpublic static Closure getInstance(Closure[] closures)
- if the closures array is null
- if any closure in the array is null