@Test public void parseNumber() throws ParseException { String source = String.valueOf(date.getTime()); conversionPattern = "###,###"; assertEquals(Long.valueOf(source), FormatUtils.parseNumber(source, conversionPattern)); }
public static Number parseNumber(final String source, final String conversionPattern) throws ParseException { DecimalFormat df = DECIMAL_FORMAT.get(); df.applyPattern(conversionPattern); return df.parse(source); }
FormatUtils { public static Number parseNumber(final String source, final String conversionPattern) throws ParseException { DecimalFormat df = DECIMAL_FORMAT.get(); df.applyPattern(conversionPattern); return df.parse(source); } }
FormatUtils { public static Number parseNumber(final String source, final String conversionPattern) throws ParseException { DecimalFormat df = DECIMAL_FORMAT.get(); df.applyPattern(conversionPattern); return df.parse(source); } private  FormatUtils(); }
FormatUtils { public static Number parseNumber(final String source, final String conversionPattern) throws ParseException { DecimalFormat df = DECIMAL_FORMAT.get(); df.applyPattern(conversionPattern); return df.parse(source); } 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 Number parseNumber(final String source, final String conversionPattern) throws ParseException { DecimalFormat df = DECIMAL_FORMAT.get(); df.applyPattern(conversionPattern); return df.parse(source); } 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();  }