org.springframework.data.redis.connection.convert
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 convertT
- 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListConverter
public ListConverter(Converter<S,T> itemConverter)
- Parameters:
itemConverter
- The Converter
to use for converting individual List items
convert
public List<T> convert(List<S> source)
- Specified by:
convert
in interface Converter<List<S>,List<T>>