public class ClassUtils
extends java.lang.Object
| Constructor and Description |
|---|
ClassUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
classesMatch(java.lang.Class<?>[] cl1,
java.lang.Class<?>[] cl2)
Checks if two arrays of classes match eachother, ignoring primitive boxing
|
static boolean |
classMatches(java.lang.Class<?> c1,
java.lang.Class<?> c2)
Returns if the provided classes are effectively the same, ignoring primitive boxing
|
static java.lang.Class<?> |
toPrimitive(java.lang.Class<?> boxed)
Gets the primitive version of a boxed primitive class, like Integer.
|
public static boolean classMatches(java.lang.Class<?> c1,
java.lang.Class<?> c2)
c1 - The first classc2 - The second classpublic static boolean classesMatch(java.lang.Class<?>[] cl1,
java.lang.Class<?>[] cl2)
cl1 - The first class arraycl2 - The second class arraypublic static java.lang.Class<?> toPrimitive(java.lang.Class<?> boxed)
boxed - The boxed to class to unbox