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

java.lang.Object
  extended by 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:
Converter<List<S>,List<T>>

public class ListConverter<S,T>
extends Object
implements Converter<List<S>,List<T>>

Converts a List of values of one type to a List of values of another type


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

Constructor Detail

ListConverter

public ListConverter(Converter<S,T> itemConverter)
Parameters:
itemConverter - The Converter to use for converting individual List items
Method Detail

convert

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