|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.apache.commons.collections.functors.ClosureTransformer
Transformer implementation that calls a Closure using the input object and then returns the input.
| Constructor Summary | |
ClosureTransformer(Closure closure)
Constructor that performs no validation. |
|
| Method Summary | |
static Transformer |
getInstance(Closure closure)
Factory method that performs validation. |
Object |
transform(Object input)
Call the closure. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ClosureTransformer(Closure closure)
getInstance if you want that.
closure - the closure to call, not null| Method Detail |
public static Transformer getInstance(Closure closure)
closure - the closure to call, not null
closure transformer
IllegalArgumentException - if the closure is nullpublic Object transform(Object input)
transform in interface Transformerinput - the object to be transformed
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||