public class Generics extends Object
| Modifier and Type | Method and Description |
|---|---|
static Type |
getGenericClassType(Object instance,
Class<?> clazz,
int position)
Returns the generic type at the given position for the given class.
|
static Type |
getGenericInterfaceType(Object instance,
Class<?> iface,
int position)
Returns the generic type at the given position for the given interface.
|
public static Type getGenericClassType(Object instance, Class<?> clazz, int position)
instance - the implementing instanceclazz - the generic classposition - the generic positionpublic static Type getGenericInterfaceType(Object instance, Class<?> iface, int position)
instance - the implementing instanceiface - the generic interfaceposition - the generic positionCopyright © 2013–2018. All rights reserved.