Package org.ldaptive.beans.reflect
Class ListReflectionTranscoder
java.lang.Object
org.ldaptive.beans.reflect.AbstractCollectionReflectionTranscoder
org.ldaptive.beans.reflect.ListReflectionTranscoder
- All Implemented Interfaces:
ReflectionTranscoder
Reflection transcoder for an object that implements
List
.-
Constructor Summary
ConstructorsConstructorDescriptionListReflectionTranscoder
(Class<?> c, ArrayReflectionTranscoder transcoder) Creates a new list reflection transcoder.ListReflectionTranscoder
(Class<?> c, SingleValueReflectionTranscoder<?> transcoder) Creates a new list 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
-
ListReflectionTranscoder
Creates a new list reflection transcoder.- Parameters:
c
- class that is a listtranscoder
- to operate on elements of the list
-
ListReflectionTranscoder
Creates a new list reflection transcoder.- Parameters:
c
- class that is a listtranscoder
- to operate on elements of the list
-
-
Method Details
-
createCollection
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
-