org.springframework.data.redis.connection.convert
Class SetConverter<S,T>
java.lang.Object
org.springframework.data.redis.connection.convert.SetConverter<S,T>
- Type Parameters:
S
- The type of elements in the Set to convertT
- The type of elements in the converted Set
- All Implemented Interfaces:
- Converter<Set<S>,Set<T>>
public class SetConverter<S,T>
- extends Object
- implements Converter<Set<S>,Set<T>>
Converts a Set of values of one type to a Set of values of another type
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SetConverter
public SetConverter(Converter<S,T> itemConverter)
- Parameters:
itemConverter
- The Converter
to use for converting individual Set items
convert
public Set<T> convert(Set<S> source)
- Specified by:
convert
in interface Converter<Set<S>,Set<T>>