예제 #1
0
 public static Short asShort(Object value) {
   if (value == null) return null;
   if (value instanceof Number) return ((Number) value).shortValue();
   return Short.valueOf(value.toString());
 }
예제 #2
0
 public static String format(short value, String format) {
   return NumberUtils.format(Short.valueOf(value), format);
 }