Method Summary |
|
final public static Object | getDefaultValue(Class cls) Returns the default value of a primitive class,
or null if it is not a primitive class. |
final public static char | getNotation(String className) Returns the notation of a primitive class,
or ((char)0) if it is not a primitive class. |
final public static boolean | isPrimitive(String clsName) Tests whether a class name is a primitive class, e.g., int and void. |
final public static Class | toClass(String clsName) Converts a primitive from name to the class,
or null if it is not a primitive class. |
final public static boolean | toPrimitive(Boolean obj) Convert Boolean object to primitive boolean. |
final public static byte | toPrimitive(Byte obj) Convert Byte object to primitive byte. |
final public static char | toPrimitive(Character obj) Convert Character object to primitive char. |
final public static double | toPrimitive(Double obj) Convert Double object to primitive double. |
final public static float | toPrimitive(Float obj) Convert Float object to primitive float. |
final public static int | toPrimitive(Integer obj) Convert Integer object to primitive int. |
final public static long | toPrimitive(Long obj) Convert Long object to primitive long. |
final public static short | toPrimitive(Short obj) Convert Short object to primitive short. |
final public static Class | toPrimitive(Class wrapper) Returns the primitive class of the giving wrapper class,
or null if it is not a wrapper class. |
final public static Boolean | toWrapper(boolean obj) Convert primitive boolean to Boolean. |
final public static Byte | toWrapper(byte obj) Convert primitive byte to Byte. |
final public static Character | toWrapper(char obj) Convert primitive char to Character. |
final public static Double | toWrapper(double obj) Convert primitive double to Double. |
final public static Float | toWrapper(float obj) Convert primitive float to Float. |
final public static Integer | toWrapper(int obj) Convert primitive int to Integer. |
final public static Long | toWrapper(long obj) Convert primitive long to Long. |
final public static Short | toWrapper(short obj) Convert primitive short to Short. |
final public static Class | toWrapper(Class primitive) Returns the wrapper class of a primitive class,
or null if it is not a primitive class. |