edu.uci.ics.jung.algorithms.util
Class MapSettableTransformer<I,O>
java.lang.Object
edu.uci.ics.jung.algorithms.util.MapSettableTransformer<I,O>
- All Implemented Interfaces:
- SettableTransformer<I,O>
public class MapSettableTransformer<I,O>
- extends Object
- implements SettableTransformer<I,O>
A SettableTransformer that operates on an underlying Map instance.
Similar to MapTransformer.
- Author:
- Joshua O'Madadhain
|
Method Summary |
void |
set(I input,
O output)
Sets the value (output) to be returned by a call to
transform(input)). |
O |
transform(I input)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
map
protected Map<I,O> map
MapSettableTransformer
public MapSettableTransformer(Map<I,O> m)
- Creates an instance based on
m.
transform
public O transform(I input)
set
public void set(I input,
O output)
- Description copied from interface:
SettableTransformer
- Sets the value (
output) to be returned by a call to
transform(input)).
- Specified by:
set in interface SettableTransformer<I,O>
Copyright © 2010 null. All Rights Reserved.