| Modifier and Type | Field and Description |
|---|---|
| private final Map | iMap
The map of data to lookup in |
| private static final long | serialVersionUID
Serial version UID |
| Access | Constructor and Description |
|---|---|
| private | MapTransformer(final Map<? super I, ? extends O>
the map to use for lookup, not cloned map)Constructor that performs no validation. |
| Modifier and Type | Method and Description |
|---|---|
| public Map | |
| public static < the input type I, the output type O> Transformer | Returns: the transformerthe map, not cloned map)Factory to create the transformer. |
| public O | Returns: the transformed resultthe input object to transform input)Implements org. Map.
|
| iMap | back to summary |
|---|---|
| private final Map<? super I, ? extends O> iMap The map of data to lookup in | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Serial version UID | |
| MapTransformer | back to summary |
|---|---|
| private MapTransformer(final Map<? super I, ? extends O> map) Constructor that performs no validation.
Use
| |
| getMap | back to summary |
|---|---|
| public Map Gets the map to lookup in.
| |
| mapTransformer | back to summary |
|---|---|
| public static <I, O> Transformer Factory to create the transformer. If the map is null, a transformer that always returns null is returned.
| |
| transform | back to summary |
|---|---|
| public O transform(final I input) Implements org. Transforms the input to result by looking it up in a
| |