com.jidesoft.utils
Class TypeUtils
java.lang.Object
com.jidesoft.utils.TypeUtils
public class TypeUtils
- extends java.lang.Object
Utils methods for data type.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeUtils
public TypeUtils()
isPrimitive
public static boolean isPrimitive(java.lang.Class<?> primitive)
isPrimitiveWrapper
public static boolean isPrimitiveWrapper(java.lang.Class<?> wrapperType)
convertPrimitiveToWrapperType
public static java.lang.Class<?> convertPrimitiveToWrapperType(java.lang.Class<?> primitive)
convertWrapperToPrimitiveType
public static java.lang.Class<?> convertWrapperToPrimitiveType(java.lang.Class<?> wrapperType)
isNumericType
public static boolean isNumericType(java.lang.Class<?> type)
- Checks if the type is a numeric type.
- Parameters:
type
- the data type.
- Returns:
- true if it is numeric type including all subclasses of Number, double, int, float, short and long.