public abstract class ClassUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Class<?> |
getGenericType(Class<?> clazz) |
static Class<?> |
getGenericType(Class<?> clazz,
int index)
Returns the generic type with the given index from the given
Class . |
static Class<?> |
getGenericTypeFromBean(Object object) |
public static Class<?> getGenericType(Class<?> clazz, int index)
Class
.
Scan all base classes until finding a generic type.clazz
- Class where seeking the generic typeindex
- index of the generic type to find in the actual type arrayCopyright © 2009–2014. All rights reserved.