Package org.ldaptive.beans.reflect
Class SetReflectionTranscoder
- java.lang.Object
-
- org.ldaptive.beans.reflect.AbstractCollectionReflectionTranscoder
-
- org.ldaptive.beans.reflect.SetReflectionTranscoder
-
- All Implemented Interfaces:
ReflectionTranscoder
public class SetReflectionTranscoder extends AbstractCollectionReflectionTranscoder
Reflection transcoder for an object that implementsSet
.
-
-
Constructor Summary
Constructors Constructor Description SetReflectionTranscoder(Class<?> c, ArrayReflectionTranscoder transcoder)
Creates a new set reflection transcoder.SetReflectionTranscoder(Class<?> c, SingleValueReflectionTranscoder<?> transcoder)
Creates a new set reflection transcoder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T> Collection<T>
createCollection(Class<T> clazz)
Returns a collection implementation of the correct type for this transcoder.-
Methods inherited from class org.ldaptive.beans.reflect.AbstractCollectionReflectionTranscoder
decodeBinaryValues, decodeStringValues, encodeBinaryValues, encodeStringValues, getType, supports, toString
-
-
-
-
Constructor Detail
-
SetReflectionTranscoder
public SetReflectionTranscoder(Class<?> c, SingleValueReflectionTranscoder<?> transcoder)
Creates a new set reflection transcoder.- Parameters:
c
- class that is a settranscoder
- to operate on elements of the set
-
SetReflectionTranscoder
public SetReflectionTranscoder(Class<?> c, ArrayReflectionTranscoder transcoder)
Creates a new set reflection transcoder.- Parameters:
c
- class that is a settranscoder
- to operate on elements of the set
-
-
Method Detail
-
createCollection
protected <T> Collection<T> createCollection(Class<T> clazz)
Description copied from class:AbstractCollectionReflectionTranscoder
Returns a collection implementation of the correct type for this transcoder.- Specified by:
createCollection
in classAbstractCollectionReflectionTranscoder
- Type Parameters:
T
- type of collection- Parameters:
clazz
- type of collection- Returns:
- collection implementation
-
-