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