org.apache.commons.collections.functors
public final class MapTransformer extends Object implements Transformer, Serializable
Since: Commons Collections 3.0
Version: $Revision: 348444 $ $Date: 2005-11-23 14:06:56 +0000 (Wed, 23 Nov 2005) $
Method Summary | |
---|---|
static Transformer | getInstance(Map map)
Factory to create the transformer.
|
Map | getMap()
Gets the map to lookup in.
|
Object | transform(Object input)
Transforms the input to result by looking it up in a Map .
|
If the map is null, a transformer that always returns null is returned.
Parameters: map the map, not cloned
Returns: the transformer
Returns: the map
Since: Commons Collections 3.1
Map
.
Parameters: input the input object to transform
Returns: the transformed result