T
- the generic type parameter.public class GenericType<T> extends Object
T
.Modifier | Constructor and Description |
---|---|
protected |
GenericType()
Constructs a new generic type, deriving the generic type and class from
type parameter.
|
|
GenericType(Type genericType)
Constructs a new generic type, supplying the generic type
information and derving the class.
|
Modifier and Type | Method and Description |
---|---|
Class<T> |
getRawClass()
Gets underlying raw class instance derived from the
type.
|
Type |
getType()
Gets underlying
Type instance derived from the
type. |
protected GenericType()
public GenericType(Type genericType)
genericType
- the generic type.IllegalArgumentException
- if genericType
is null or is neither an instance of Class or ParameterizedType whose raw
type is not an instance of Class.Copyright © 2013 Oracle Corporation. All rights reserved.