public class ClassUtils
extends java.lang.Object
This static class provides various utility methods for manipulating class names.
Modifier | Constructor and Description |
---|---|
protected |
ClassUtils()
Don't allow instantiation, do allow overrides.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
packageName(java.lang.String name)
Extracts the package name from a fully qualified class name.
|
static java.lang.String |
unqualifiedName(java.lang.String name)
Extracts the unqualified class name from a fully qualified
class name.
|
public static java.lang.String unqualifiedName(java.lang.String name)
name
- The fully qualified class name.public static java.lang.String packageName(java.lang.String name)
name
- The fully qualified class name.