java.lang.Object
is.codion.common.utilities.TypeReference<T>
- Type Parameters:
T- the type represented by this type reference.
A basic TypeReference implementation, capturing a generic type via an anonymous subclass:
TypeReference<List<String>> reference = new TypeReference<>() {};
The captured type T must itself be a parameterized type; for plain classes use the
available Class<T> based overloads instead. A non-parameterized T
(e.g. new TypeReference<String>() {}) throws IllegalArgumentException.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TypeReference
protected TypeReference()Instantiates a newTypeReference- Throws:
IllegalArgumentException- in case the subclass is raw (no type argument) orTis not a parameterized type
-
-
Method Details