@@ -0,0 +1,512 @@
+package com.kingston.jforgame.common.utils;%0A%0Apublic final class NumberUtil %7B%0A%09%0A%09public static byte byteValue(Object object) %7B%0A%09%09return byteValue(object, Byte.valueOf(%220%22));%0A%09%7D%0A%09%0A%09public static byte byteValue(Object object, byte defaultValue) %7B%0A%09%09if (object == null) %7B%0A%09%09%09return defaultValue;%0A%09%09%7D%0A%09%09if (object.getClass() == float.class %7C%7C object.getClass() == Float.class) %7B%0A%09%09%09return (byte)object;%0A%09%09%7D%0A%09%09try %7B%0A%09%09%09return Byte.valueOf(object.toString());%0A%09%09%7Dcatch(Exception e) %7B%0A%09%09%09return defaultValue;%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A 

add NumberUtil