Class Lister<T>
java.lang.Object
org.jvnet.tiger_types.Lister<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Class[]final Typefinal ClassType of the individual itemprotected final Collection -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic <T> Lister<T> Creates aListerinstance that produces the given type.static ListerCreates aListerinstance that produces the given type.abstract Tprivate static IllegalAccessErrorprivate static InstantiationError
-
Field Details
-
itemType
Type of the individual item -
itemGenericType
-
r
-
CONCRETE_TYPES
-
-
Constructor Details
-
Lister
-
Lister
-
-
Method Details
-
add
-
toCollection
-
create
-
create
Creates aListerinstance that produces the given type.- Parameters:
c- The erasure version of 't'. This is taken as a parameter as a performance optimizaiton.- Returns:
- null if the given type doesn't look like a collection.
- Throws:
IllegalArgumentException- if the given type does look like a collection yet this implementation is not capable of how to handle it.
-
toError
-
toError
-