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 convert
T - The type of keys and values in the converted Map
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<Map<S,S>,Map<T,T>>

public class MapConverter<S,T> extends Object implements org.springframework.core.convert.converter.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
Author:
Jennifer Hickey, Christoph Strobl
  • Constructor Details

    • MapConverter

      public MapConverter(org.springframework.core.convert.converter.Converter<S,T> itemConverter)
      Parameters:
      itemConverter - The Converter to use for converting individual Map keys and values. Must not be null.
  • Method Details

    • convert

      public Map<T,T> convert(Map<S,S> source)
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<S,T>