public static Class getGenericClassFromParent ( Object parent ) { return ( Class ) ( ( ParameterizedType ) parent . getClass ( ) . getGenericSuperclass ( ) ) . getActualTypeArguments ( ) [ 0 ] ; }
Gets the generic class from parent .