Package 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:
com.google.common.base.Function<I,
,O> SettableTransformer<I,
,O> Function<I,
O>
A
SettableTransformer
that operates on an underlying Map
instance.
Similar to MapTransformer
.-
Field Details
-
map
-
-
Constructor Details
-
MapSettableTransformer
Creates an instance based onm
.- Parameters:
m
- the map on which this instance is based
-
-
Method Details
-
apply
-
set
Description copied from interface:SettableTransformer
Sets the value (output
) to be returned by a call totransform(input)
).- Specified by:
set
in interfaceSettableTransformer<I,
O> - Parameters:
input
- the value whose output value is being specifiedoutput
- the output value forinput
-