Package org.ldaptive.beans.reflect
Class SetReflectionTranscoder
java.lang.Object
org.ldaptive.beans.reflect.AbstractCollectionReflectionTranscoder
org.ldaptive.beans.reflect.SetReflectionTranscoder
- All Implemented Interfaces:
ReflectionTranscoder
Reflection transcoder for an object that implements
Set.-
Constructor Summary
ConstructorsConstructorDescriptionSetReflectionTranscoder(Class<?> c, ArrayReflectionTranscoder transcoder) Creates a new set reflection transcoder.SetReflectionTranscoder(Class<?> c, SingleValueReflectionTranscoder<?> transcoder) Creates a new set reflection transcoder. -
Method Summary
Modifier and TypeMethodDescriptionprotected <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 Details
-
SetReflectionTranscoder
Creates a new set reflection transcoder.- Parameters:
c- class that is a settranscoder- to operate on elements of the set
-
SetReflectionTranscoder
Creates a new set reflection transcoder.- Parameters:
c- class that is a settranscoder- to operate on elements of the set
-
-
Method Details
-
createCollection
Description copied from class:AbstractCollectionReflectionTranscoderReturns a collection implementation of the correct type for this transcoder.- Specified by:
createCollectionin classAbstractCollectionReflectionTranscoder- Type Parameters:
T- type of collection- Parameters:
clazz- type of collection- Returns:
- collection implementation
-