public static Class<?> getGenericSupertype(Class<?> type, int index) {
        return getComponentType(type.getGenericSuperclass(), null, index);
    }
public static Class<?> getGenericSupertype(Class<?> type, int index) {
        return getComponentType(type.getGenericSuperclass(), null, index);
    }
public static Class < ? > getGenericSupertype ( Class < ? > type , int index ) { return getComponentType ( type . getGenericSuperclass ( ) , null , index ) ; }
Returns generic supertype for given class and 0-based index.
@see #getComponentType(java.lang.reflect.Type, int)
Returns generic supertype for given class and 0 - based index .