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