|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.collections.functors.MapTransformer
public final class MapTransformer
Transformer implementation that returns the value held in a specified map using the input parameter as a key.
| Method Summary | |
|---|---|
static Transformer |
getInstance(java.util.Map map)
Factory to create the transformer. |
java.util.Map |
getMap()
Gets the map to lookup in. |
java.lang.Object |
transform(java.lang.Object input)
Transforms the input to result by looking it up in a 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(java.util.Map map)
If the map is null, a transformer that always returns null is returned.
map - the map, not cloned
public java.lang.Object transform(java.lang.Object input)
Map.
transform in interface Transformerinput - the input object to transform
public java.util.Map getMap()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||