|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.collections.functors.TransformerClosure
public class TransformerClosure
Closure implementation that calls a Transformer using the input object and ignore the result.
| Constructor Summary | |
|---|---|
TransformerClosure(Transformer transformer)
Constructor that performs no validation. |
|
| Method Summary | |
|---|---|
void |
execute(java.lang.Object input)
Executes the closure by calling the decorated transformer. |
static Closure |
getInstance(Transformer transformer)
Factory method that performs validation. |
Transformer |
getTransformer()
Gets the transformer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransformerClosure(Transformer transformer)
getInstance if you want that.
transformer - the transformer to call, not null| Method Detail |
|---|
public static Closure getInstance(Transformer transformer)
A null transformer will return the NOPClosure.
transformer - the transformer to call, null means nop
transformer closurepublic void execute(java.lang.Object input)
execute in interface Closureinput - the input objectpublic Transformer getTransformer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||