T
- the type, including all actual type parameterspublic abstract class TypeLiteral<T> extends Object implements 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>>() { };
Instance.select(TypeLiteral, Annotation...)
,
Event.select(TypeLiteral, Annotation...)
,
Serialized FormModifier | Constructor and Description |
---|---|
protected |
TypeLiteral() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Class<T> |
getRawType() |
Type |
getType() |
int |
hashCode() |
String |
toString() |
public final Type getType()
Comments to: cdi-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation.
Use is subject to license terms.