Package javax.enterprise.util
Class TypeLiteral<T>
java.lang.Object
javax.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>>() { };
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
actualType
-
-
Constructor Details
-
TypeLiteral
protected TypeLiteral()
-
-
Method Details
-
getType
- Returns:
- the actual type represented by this object
-
getRawType
- Returns:
- the raw type represented by this object
-
getTypeLiteralSubclass
-
getTypeParameter
-
equals
-
hashCode
public int hashCode() -
toString
-