Class ListConverter<S,T>

java.lang.Object
org.springframework.data.redis.connection.convert.ListConverter<S,T>
Type Parameters:
S - The type of elements in the List to convert
T - The type of elements in the converted List
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<List<S>,List<T>>

public class ListConverter<S,T> extends Object implements org.springframework.core.convert.converter.Converter<List<S>,List<T>>
Converts a List of values of one type to a List of values of another type
Author:
Jennifer Hickey, Mark Paluch, Christoph Strobl
  • Constructor Details

    • ListConverter

      public ListConverter(org.springframework.core.convert.converter.Converter<S,T> itemConverter)
      Parameters:
      itemConverter - The Converter to use for converting individual List items
  • Method Details

    • convert

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