java.lang.Object
jakarta.enterprise.util.TypeLiteral<T>
- Type Parameters:
T
- the type, including all actual type parameters
- All Implemented Interfaces:
Serializable
Supports inline instantiation of objects that represent parameterized types with actual type parameters.
An object that represents any parameterized type may be obtained by subclassing TypeLiteral
.
TypeLiteral<List<String>> stringListType = new TypeLiteral<List<String>>() { };
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
The literal constructor, only for subclasses. -
Method Summary
-
Constructor Details
-
TypeLiteral
protected TypeLiteral()The literal constructor, only for subclasses.
-
-
Method Details
-
getType
- Returns:
- the actual type represented by this object
-
getRawType
-
equals
-
hashCode
-
toString
-