public abstract class GenericHelper extends Object
Constructor and Description |
---|
GenericHelper() |
Modifier and Type | Method and Description |
---|---|
static int |
getGenericParameterCount(Type gt)
Return the number of generic parameters of a type.
|
static Class<?> |
getGenericParameterType(Type gt,
int i)
Return the type of a generic parameters of a type.
|
public static int getGenericParameterCount(Type gt)
gt
- A Type.ParameterizedType
.
Otherwise, 0 is returned.public static Class<?> getGenericParameterType(Type gt, int i)
gt
- A Type.i
,
if type is a ParameterizedType
.
Otherwise, null
is returned.Copyright © 2014 Clazzes.org. All Rights Reserved.