|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.collections.functors.FactoryTransformer
public class FactoryTransformer
Transformer implementation that calls a Factory and returns the result.
| Constructor Summary | |
|---|---|
FactoryTransformer(Factory factory)
Constructor that performs no validation. |
|
| Method Summary | |
|---|---|
Factory |
getFactory()
Gets the factory. |
static Transformer |
getInstance(Factory factory)
Factory method that performs validation. |
java.lang.Object |
transform(java.lang.Object input)
Transforms the input by ignoring the input and returning the result of calling the decorated 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
java.lang.IllegalArgumentException - if the factory is nullpublic java.lang.Object transform(java.lang.Object input)
transform in interface Transformerinput - the input object to transform
public Factory getFactory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||