public static String getShortName ( Class < ? > c ) { String qname = getQualifiedName ( c ) ; int start = qname . lastIndexOf ( ' ' ) ; if ( start == - 1 ) { start = qname . lastIndexOf ( ' ' ) ; } return qname . substring ( start + 1 ) ; }
Returns only the name of the given class that is without its package name and without its eventual outer class name .