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

java.lang.Object
  extended by org.springframework.data.redis.connection.convert.SetConverter<S,T>
Type Parameters:
S - The type of elements in the Set to convert
T - 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


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

Constructor Detail

SetConverter

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

convert

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