@Test public void testNumberWithIntegerStyleAndBigDecimal() throws Exception { MessageFormat messageFormat = messageFormatFactory.create(Locale.ENGLISH, "{0, number, integer} lb"); String result = messageFormat.format(new Object[]{BigDecimal.valueOf(10001375, 3)}); assertThat(result).isNotNull().isEqualTo("10,001 lb"); }
@Override public MessageFormat create(Locale locale, String format) { checkNotNull(locale); checkNotNull(format); return new ExtendedMessageFormat(format, locale, formatFactoryRegistry); }
DefaultMessageFormatFactory implements MessageFormatFactory { @Override public MessageFormat create(Locale locale, String format) { checkNotNull(locale); checkNotNull(format); return new ExtendedMessageFormat(format, locale, formatFactoryRegistry); } }
DefaultMessageFormatFactory implements MessageFormatFactory { @Override public MessageFormat create(Locale locale, String format) { checkNotNull(locale); checkNotNull(format); return new ExtendedMessageFormat(format, locale, formatFactoryRegistry); } DefaultMessageFormatFactory(); }
DefaultMessageFormatFactory implements MessageFormatFactory { @Override public MessageFormat create(Locale locale, String format) { checkNotNull(locale); checkNotNull(format); return new ExtendedMessageFormat(format, locale, formatFactoryRegistry); } DefaultMessageFormatFactory(); @Override MessageFormat create(Locale locale, String format); }
DefaultMessageFormatFactory implements MessageFormatFactory { @Override public MessageFormat create(Locale locale, String format) { checkNotNull(locale); checkNotNull(format); return new ExtendedMessageFormat(format, locale, formatFactoryRegistry); } DefaultMessageFormatFactory(); @Override MessageFormat create(Locale locale, String format);  }