|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.apache.commons.collections.functors.FactoryTransformer
Transformer implementation that calls a Factory and returns the result.
| Constructor Summary | |
FactoryTransformer(Factory factory)
Constructor that performs no validation. |
|
| Method Summary | |
static Transformer |
getInstance(Factory factory)
Factory method that performs validation. |
Object |
transform(Object input)
Call the factory. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FactoryTransformer(Factory factory)
getInstance if you want that.
factory - the factory to call, not null| Method Detail |
public static Transformer getInstance(Factory factory)
factory - the factory to call, not null
factory transformer
IllegalArgumentException - if the factory 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 | ||||||||||