Пример #1
0
 public static Long asLong(Object value) {
   if (value == null) return null;
   if (value instanceof Number) return ((Number) value).longValue();
   return Long.valueOf(value.toString());
 }
Пример #2
0
 public static String format(long value, String format) {
   return NumberUtils.format(Long.valueOf(value), format);
 }