org.springframework.data.redis.connection.convert
Class MapConverter<S,T>
java.lang.Object
org.springframework.data.redis.connection.convert.MapConverter<S,T>
- Type Parameters:
S
- The type of keys and values in the Map to convertT
- The type of keys and values in the converted Map
- All Implemented Interfaces:
- Converter<Map<S,S>,Map<T,T>>
public class MapConverter<S,T>
- extends Object
- implements Converter<Map<S,S>,Map<T,T>>
Converts a Map of values of one key/value type to a Map of values of another type
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapConverter
public MapConverter(Converter<S,T> itemConverter)
- Parameters:
itemConverter
- The Converter
to use for converting individual Map keys and values
convert
public Map<T,T> convert(Map<S,S> source)
- Specified by:
convert
in interface Converter<Map<S,S>,Map<T,T>>