|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.collections4.functors.ChainedClosure<E>
public class ChainedClosure<E>
Closure implementation that chains the specified closures together.
| Constructor Summary | |
|---|---|
ChainedClosure(Closure<? super E>... closures)
Constructor that performs no validation. |
|
| Method Summary | ||
|---|---|---|
static
|
chainedClosure(Closure<? super E>... closures)
Factory method that performs validation and copies the parameter array. |
|
static
|
chainedClosure(Collection<Closure<E>> closures)
Create a new Closure that calls each closure in turn, passing the result into the next closure. |
|
void |
execute(E input)
Execute a list of closures. |
|
Closure<? super E>[] |
getClosures()
Gets the closures. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChainedClosure(Closure<? super E>... closures)
chainedClosure if you want that.
closures - the closures to chain, copied, no nulls| Method Detail |
|---|
public static <E> Closure<E> chainedClosure(Closure<? super E>... closures)
E - the type that the closure acts onclosures - the closures to chain, copied, no nulls
chained closure
IllegalArgumentException - if the closures array is null
IllegalArgumentException - if any closure in the array is nullpublic static <E> Closure<E> chainedClosure(Collection<Closure<E>> closures)
E - the type that the closure acts onclosures - a collection of closures to chain
chained closure
IllegalArgumentException - if the closures collection is null
IllegalArgumentException - if any closure in the collection is nullpublic void execute(E input)
execute in interface Closure<E>input - the input object passed to each closurepublic Closure<? super E>[] getClosures()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||