|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.collections15.functors.FactoryTransformer<I,T>
public class FactoryTransformer<I,T>
Transformer implementation that calls a Factory and returns the result.
| Constructor Summary | |
|---|---|
FactoryTransformer(Factory<T> factory)
Constructor that performs no validation. |
|
| Method Summary | ||
|---|---|---|
Factory<T> |
getFactory()
Gets the factory. |
|
static
|
getInstance(Factory<T> factory)
Factory method that performs validation. |
|
T |
transform(I 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<T> factory)
getInstance if you want that.
factory - the factory to call, not null| Method Detail |
|---|
public static <K,T> Transformer<K,T> getInstance(Factory<T> factory)
factory - the factory to call, not null
factory transformer
IllegalArgumentException - if the factory is nullpublic T transform(I input)
transform in interface Transformer<I,T>input - the input object to transform
public Factory<T> getFactory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||