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() |
public final Type getType()
Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.