Example usage for Java org.apache.commons.lang ClassUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
char | INNER_CLASS_SEPARATOR_CHAR The inner class separator character: |
String | INNER_CLASS_SEPARATOR The inner class separator String: |
List | convertClassesToClassNames(List Given a A new |
List | convertClassNamesToClasses(List Given a A new |
List | getAllInterfaces(Class> cls) Gets a The order is determined by looking through each interface in turn as declared in the source file and following its hierarchy up. |
List | getAllSuperclasses(Class> cls) Gets a |
Class> | getClass(String className) Returns the (initialized) class represented by className using the current thread's context class loader. |
Class> | getClass(ClassLoader classLoader, String className) Returns the (initialized) class represented by className using the classLoader . |
Class> | getClass(String className, boolean initialize) Returns the class represented by className using the current thread's context class loader. |
Class> | getClass(ClassLoader classLoader, String className, boolean initialize) Returns the class represented by className using the classLoader . |
String | getPackageName(Object object, String valueIfNull) Gets the package name of an |
String | getPackageName(Class> cls) Gets the package name of a |
String | getPackageName(String className) Gets the package name from a The string passed in is assumed to be a class name - it is not checked. If the class is unpackaged, return an empty string. |
Method | getPublicMethod(Class> cls, String methodName, Class> parameterTypes[]) Returns the desired Method much like |
String | getShortCanonicalName(Class> cls) Gets the canonical name minus the package name from a |
String | getShortCanonicalName(String canonicalName) Gets the canonical name minus the package name from a String. The string passed in is assumed to be a canonical name - it is not checked. |
String | getShortCanonicalName(Object object, String valueIfNull) Gets the canonical name minus the package name for an |
String | getShortClassName(Class> cls) Gets the class name minus the package name from a |
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. |
String | getShortClassName(Object object, String valueIfNull) Gets the class name minus the package name for an |
boolean | isAssignable(Class>[] classArray, Class>[] toClassArray) Checks if an array of Classes can be assigned to another array of Classes. This method calls #isAssignable(Class,Class) isAssignable for each Class pair in the input arrays. |
boolean | isAssignable(Class> cls, Class> toClass) Checks if one Unlike the Class#isAssignableFrom(java.lang.Class) method, this method takes into account widenings of primitive classes and Primitive widenings allow an int to be assigned to a long, float or double. |
boolean | isAssignable(Class>[] classArray, Class>[] toClassArray, boolean autoboxing) Checks if an array of Classes can be assigned to another array of Classes. This method calls #isAssignable(Class,Class) isAssignable for each Class pair in the input arrays. |
boolean | isAssignable(Class> cls, Class> toClass, boolean autoboxing) Checks if one Unlike the Class#isAssignableFrom(java.lang.Class) method, this method takes into account widenings of primitive classes and Primitive widenings allow an int to be assigned to a long, float or double. |
Class> | primitiveToWrapper(Class> cls) Converts the specified primitive Class object to its corresponding wrapper Class object. NOTE: From v2.2, this method handles |
Class>[] | toClass(Object[] array) Converts an array of This method returns |
Class> | wrapperToPrimitive(Class> cls) Converts the specified wrapper class to its corresponding primitive class. This method is the counter part of |