public class TypeUtils
extends java.lang.Object
Constructor and Description |
---|
TypeUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Class<?> |
convertPrimitiveToWrapperType(java.lang.Class<?> primitive) |
static java.lang.Class<?> |
convertWrapperToPrimitiveType(java.lang.Class<?> wrapperType) |
static boolean |
isNumericType(java.lang.Class<?> type)
Checks if the type is a numeric type.
|
static boolean |
isPrimitive(java.lang.Class<?> primitive) |
static boolean |
isPrimitiveWrapper(java.lang.Class<?> wrapperType) |
public static boolean isPrimitive(java.lang.Class<?> primitive)
public static boolean isPrimitiveWrapper(java.lang.Class<?> wrapperType)
public static java.lang.Class<?> convertPrimitiveToWrapperType(java.lang.Class<?> primitive)
public static java.lang.Class<?> convertWrapperToPrimitiveType(java.lang.Class<?> wrapperType)
public static boolean isNumericType(java.lang.Class<?> type)
type
- the data type.