|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.collections15.functors.TransformerClosure<I,O>
public class TransformerClosure<I,O>
Closure implementation that calls a Transformer using the input object and ignore the result.
| Constructor Summary | |
|---|---|
TransformerClosure(Transformer<? super I,O> transformer)
Constructor that performs no validation. |
|
| Method Summary | ||
|---|---|---|
void |
execute(I input)
Executes the closure by calling the decorated transformer. |
|
static
|
getInstance(Transformer<? super I,O> transformer)
Factory method that performs validation. |
|
Transformer<? super I,O> |
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<? super I,O> transformer)
getInstance if you want that.
transformer - the transformer to call, not null| Method Detail |
|---|
public static <I,O> Closure<I> getInstance(Transformer<? super I,O> transformer)
NOPClosure.
transformer - the transformer to call, null means nop
transformer closurepublic void execute(I input)
execute in interface Closure<I>input - the input objectpublic Transformer<? super I,O> getTransformer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||