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