Package com.fauna.codec
Class ListOf<E>
- java.lang.Object
-
- com.fauna.codec.ParameterizedOf<java.util.List<E>>
-
- com.fauna.codec.ListOf<E>
-
- Type Parameters:
E
- The type of elements in the list.
- All Implemented Interfaces:
java.lang.reflect.ParameterizedType
,java.lang.reflect.Type
public final class ListOf<E> extends ParameterizedOf<java.util.List<E>>
Represents aList
with a specified element type, allowing for retention of the generic typeE
during deserialization by circumventing type erasure.
-
-
Method Summary
-
Methods inherited from class com.fauna.codec.ParameterizedOf
getActualTypeArguments, getOwnerType, getRawType
-
-
-
-
Constructor Detail
-
ListOf
public ListOf(java.lang.Class<E> elementClass)
Constructs aListOf
instance for the specified element type.- Parameters:
elementClass
- The class of the elements contained in the list.
-
-