|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.apache.commons.collections.functors.MapTransformer
Transformer implementation that returns the value held in a specified map using the input parameter as a key.
| Method Summary | |
static Transformer |
getInstance(Map map)
Factory to create the transformer. |
Object |
transform(Object input)
Returns the result by looking up in the map. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static Transformer getInstance(Map map)
If the map is null, a transformer that always returns null is returned.
map - the map, not cloned
public 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 | ||||||||||