@Test public void formatLongNumber() { long number = date.getTime(); DecimalFormat df = new DecimalFormat(); df.setDecimalFormatSymbols(DecimalFormatSymbols.getInstance(Locale.ENGLISH)); assertEquals(df.format(number), FormatUtils.format(number)); conversionPattern = "###,###"; df = new DecimalFormat(conversionPattern); df.setDecimalFormatSymbols(DecimalFormatSymbols.getInstance(Locale.ENGLISH)); assertEquals(df.format(number), FormatUtils.format(number, conversionPattern)); }
public static String format(final Date date) { return format(date, true); }
FormatUtils { public static String format(final Date date) { return format(date, true); } }
FormatUtils { public static String format(final Date date) { return format(date, true); } private  FormatUtils(); }
FormatUtils { public static String format(final Date date) { return format(date, true); } private  FormatUtils(); static String format(final Date date); static String format(final Date date, final boolean lenient); static String format(final Date date, final boolean lenient, final String conversionPattern); static String format(final long number); static String format(final long number, final String conversionPattern); static String format(final double number); static String format(final double number, final String conversionPattern); static Date parseDate(final String source); static Date parseDate(final String source, final String conversionPattern); static Number parseNumber(final String source, final String conversionPattern); static void clear(); }
FormatUtils { public static String format(final Date date) { return format(date, true); } private  FormatUtils(); static String format(final Date date); static String format(final Date date, final boolean lenient); static String format(final Date date, final boolean lenient, final String conversionPattern); static String format(final long number); static String format(final long number, final String conversionPattern); static String format(final double number); static String format(final double number, final String conversionPattern); static Date parseDate(final String source); static Date parseDate(final String source, final String conversionPattern); static Number parseNumber(final String source, final String conversionPattern); static void clear();  }