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