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