org.springframework.data.redis.connection.convert
Class MapConverter<S,T>

java.lang.Object
  

extended by org.springframework.data.redis.connection.convert.MapConverter<S,T>
Type Parameters:
S - The type of keys and values in the Map to convert
T - 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


Constructor Summary
MapConverter(Converter<S,T> itemConverter)
           
 
Method Summary
 Map<T,T> convert(Map<S,S> source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapConverter

public MapConverter(Converter<S,T> itemConverter)
Parameters:
itemConverter - The Converter to use for converting individual Map keys and values
Method Detail

convert

public Map<T,T> convert(Map<S,S> source)
Specified by:
convert in interface Converter<Map<S,S>,Map<T,T>>