@ SuppressWarnings ( "unchecked" ) public static Class < Object > getInnerClassType ( Class < ? > declaringClass , String name ) throws ClassNotFoundException { return ( Class < Object > ) Class . forName ( declaringClass . getName ( ) + "$" + name ) ; }
Get an inner class type .