T
- public abstract class TypeLiteral<T> extends Object
TypeLiteral
.
TypeLiteral<List<String>> stringListType = new TypeLiteral<List<String>>() {};
Modifier | Constructor and Description |
---|---|
protected |
TypeLiteral() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Type[] |
getParameterTypes()
Gets the types associated with this literal
|
Class<T> |
getRawType() |
static Class<?> |
getRawType(Type type)
Gets the base associated class from this type
|
Type |
getType() |
int |
hashCode() |
String |
toString() |
public final Type getType()
public final Type[] getParameterTypes()
public static Class<?> getRawType(Type type)
type
- The non-null type to analyzeCopyright © 2009–2019 Oracle Corporation. All rights reserved.