@Test(threadPoolSize = 10, invocationCount = 10) public void compactDecimalLocaleTest() { Locale DE = Locale.GERMAN; assertEquals(compactDecimal(-10, ES), "-10"); assertEquals(compactDecimal(-10000001, ES), "-10 M"); assertEquals(compactDecimal(-10, DE), "-10"); assertEquals(compactDecimal(-10000001, DE), "-10 Mio."); assertEquals(compactDecimal(10, ES), "10"); assertEquals(compactDecimal(100000, ES), "100 K"); assertEquals(compactDecimal(100000000, ES), "100 M"); assertEquals(compactDecimal(2394000, ES), "2,4 M"); assertEquals(compactDecimal(10, DE), "10"); assertEquals(compactDecimal(100000, DE), "100 Tsd."); assertEquals(compactDecimal(100000000, DE), "100 Mio."); assertEquals(compactDecimal(2394000, DE), "2,4 Mio."); assertEquals(compactDecimal(10, CompactStyle.LONG, ES), "10"); assertEquals(compactDecimal(100000, CompactStyle.LONG, ES), "100 mil"); assertEquals(compactDecimal(1000000, CompactStyle.LONG, ES), "1 millón"); assertEquals(compactDecimal(100000000, CompactStyle.LONG, ES), "100 millones"); assertEquals(compactDecimal(2394000, CompactStyle.LONG, ES), "2,4 millones"); assertEquals(compactDecimal(10, CompactStyle.LONG, DE), "10"); assertEquals(compactDecimal(100000, CompactStyle.LONG, DE), "100 Tausend"); assertEquals(compactDecimal(1000000, CompactStyle.LONG, DE), "1 Million"); assertEquals(compactDecimal(100000000, CompactStyle.LONG, DE), "100 Millionen"); assertEquals(compactDecimal(2394000, CompactStyle.LONG, DE), "2,4 Millionen"); }
public static String compactDecimal(final Number value) { NumberFormat fmt = context.get().getCompactDecimalFormat(); return fmt.format(value); }
ICUHumanize { public static String compactDecimal(final Number value) { NumberFormat fmt = context.get().getCompactDecimalFormat(); return fmt.format(value); } }
ICUHumanize { public static String compactDecimal(final Number value) { NumberFormat fmt = context.get().getCompactDecimalFormat(); return fmt.format(value); } private  ICUHumanize(); }
ICUHumanize { public static String compactDecimal(final Number value) { NumberFormat fmt = context.get().getCompactDecimalFormat(); return fmt.format(value); } private  ICUHumanize(); static String compactDecimal(final Number value); static String compactDecimal(final Number value, final CompactStyle style); static String compactDecimal(final Number value, final CompactStyle style, final Locale locale); static String compactDecimal(final Number value, final Locale locale); static DateFormat dateFormatInstance(final String pattern); static DateFormat dateFormatInstance(final String pattern, final Locale locale); static DecimalFormat decimalFormatInstance(final String pattern); static DecimalFormat decimalFormatInstance(final String pattern, final Locale locale); static String duration(final Number value); static String format(final String pattern, final Object... args); static String formatCurrency(final Number value); static String formatCurrency(final Number value, final Locale locale); static String formatDate(final Date value); static String formatDate(final Date value, final Locale locale); static String formatDate(final Date value, final String pattern); static String formatDate(final Date value, final String pattern, final Locale locale); static String formatDate(final int style, final Date value); static String formatDate(final int style, final Date value, final Locale locale); static String formatDateTime(final Date value); static String formatDateTime(final Date value, final Locale locale); static String formatDateTime(final int dateStyle, final int timeStyle, final Date value); static String formatDateTime(final int dateStyle, final int timeStyle, final Date value, final Locale locale); static String formatDecimal(final Number value); static String formatDecimal(final Number value, final Locale locale); static String formatPercent(final Number value); static String formatPercent(final Number value, final Locale locale); static String formatPluralCurrency(final Number value); static String formatPluralCurrency(final Number value, final Locale locale); static MessageFormat messageFormatInstance(final String pattern); static MessageFormat messageFormatInstance(final String pattern, final Locale locale); static String naturalDay(final Date value); static String naturalDay(final Date value, final Locale locale); static String naturalDay(final int style, final Date value); static String naturalTime(final Date duration); static String naturalTime(final Date reference, final Date duration); static String naturalTime(final Date reference, final Date duration, final Locale locale); static String naturalTime(final Date duration, final Locale locale); static String ordinalize(final Number value); static String ordinalize(final Number value, final Locale locale); static Number parseNumber(final String text); static Number parseNumber(final String text, final Locale locale); static String pluralize(final Locale locale, final String pattern, final Number value,
            final Object... args); static String pluralize(final String pattern, final Number value, final Object... args); static String replaceSupplementary(final String value); static String smartDateFormat(final Date value, final String skeleton); static String smartDateFormat(final Date value, final String skeleton, final Locale locale); static String spellNumber(final Number value); static String spellNumber(final Number value, final Locale locale); static String transliterate(final String text); static String transliterate(final String text, final String id); }
ICUHumanize { public static String compactDecimal(final Number value) { NumberFormat fmt = context.get().getCompactDecimalFormat(); return fmt.format(value); } private  ICUHumanize(); static String compactDecimal(final Number value); static String compactDecimal(final Number value, final CompactStyle style); static String compactDecimal(final Number value, final CompactStyle style, final Locale locale); static String compactDecimal(final Number value, final Locale locale); static DateFormat dateFormatInstance(final String pattern); static DateFormat dateFormatInstance(final String pattern, final Locale locale); static DecimalFormat decimalFormatInstance(final String pattern); static DecimalFormat decimalFormatInstance(final String pattern, final Locale locale); static String duration(final Number value); static String format(final String pattern, final Object... args); static String formatCurrency(final Number value); static String formatCurrency(final Number value, final Locale locale); static String formatDate(final Date value); static String formatDate(final Date value, final Locale locale); static String formatDate(final Date value, final String pattern); static String formatDate(final Date value, final String pattern, final Locale locale); static String formatDate(final int style, final Date value); static String formatDate(final int style, final Date value, final Locale locale); static String formatDateTime(final Date value); static String formatDateTime(final Date value, final Locale locale); static String formatDateTime(final int dateStyle, final int timeStyle, final Date value); static String formatDateTime(final int dateStyle, final int timeStyle, final Date value, final Locale locale); static String formatDecimal(final Number value); static String formatDecimal(final Number value, final Locale locale); static String formatPercent(final Number value); static String formatPercent(final Number value, final Locale locale); static String formatPluralCurrency(final Number value); static String formatPluralCurrency(final Number value, final Locale locale); static MessageFormat messageFormatInstance(final String pattern); static MessageFormat messageFormatInstance(final String pattern, final Locale locale); static String naturalDay(final Date value); static String naturalDay(final Date value, final Locale locale); static String naturalDay(final int style, final Date value); static String naturalTime(final Date duration); static String naturalTime(final Date reference, final Date duration); static String naturalTime(final Date reference, final Date duration, final Locale locale); static String naturalTime(final Date duration, final Locale locale); static String ordinalize(final Number value); static String ordinalize(final Number value, final Locale locale); static Number parseNumber(final String text); static Number parseNumber(final String text, final Locale locale); static String pluralize(final Locale locale, final String pattern, final Number value,
            final Object... args); static String pluralize(final String pattern, final Number value, final Object... args); static String replaceSupplementary(final String value); static String smartDateFormat(final Date value, final String skeleton); static String smartDateFormat(final Date value, final String skeleton, final Locale locale); static String spellNumber(final Number value); static String spellNumber(final Number value, final Locale locale); static String transliterate(final String text); static String transliterate(final String text, final String id);  }