public abstract class ClassUtils extends Object
Constructor and Description |
---|
ClassUtils() |
Modifier and Type | Method and Description |
---|---|
static Class<?> |
findClosestMatch(Class<?> type,
Set<Class<?>> candidates,
boolean failOnTie) |
static Class<?> |
resolvePrimitiveType(Class<?> clazz)
Resolve the given class if it is a primitive wrapper class,
returning the corresponding primitive type instead.
|
public static Class<?> findClosestMatch(Class<?> type, Set<Class<?>> candidates, boolean failOnTie)
public static Class<?> resolvePrimitiveType(Class<?> clazz)
clazz
- the wrapper class to check