public class ClassUtils extends Object
Modifier and Type | Field and Description |
---|---|
static char |
INNER_CLASS_SEPARATOR_CHAR |
static char |
PACKAGE_SEPARATOR_CHAR |
Modifier and Type | Method and Description |
---|---|
static String |
getShortClassName(Class cls)
Gets the class name minus the package name from a
Class . |
static String |
getShortClassName(String className)
Gets the class name minus the package name from a String.
|
public static final char PACKAGE_SEPARATOR_CHAR
public static final char INNER_CLASS_SEPARATOR_CHAR
public static String getShortClassName(Class cls)
Gets the class name minus the package name from a Class
.
cls
- the class to get the short name for.public static String getShortClassName(String className)
Gets the class name minus the package name from a String.
The string passed in is assumed to be a class name - it is not checked.
className
- the className to get the short name forCopyright © 2005–2018. All rights reserved.