public static Long asLong(Object value) { if (value == null) return null; if (value instanceof Number) return ((Number) value).longValue(); return Long.valueOf(value.toString()); }
public static String format(long value, String format) { return NumberUtils.format(Long.valueOf(value), format); }