public final class ClassUtil extends Object
Modifier and Type | Method and Description |
---|---|
static <T,I> Class<T> |
getActualTypeBinding(Class<? extends I> instanceClass,
Class<I> superClass,
int argumentIndex)
Resolves the actual binding of a generic type that was specified in a superclass and bound in a subclass.
|
public static <T,I> Class<T> getActualTypeBinding(Class<? extends I> instanceClass, Class<I> superClass, int argumentIndex)
instanceClass
- the implementing classsuperClass
- the superclass or interface which specifies the generic type variableargumentIndex
- the index of the type variable in the superclass definition (0 = the first type variable)Copyright © 2016 fastnate.org. All rights reserved.