Class NumberFormatterFactory

java.lang.Object
com.ibm.icu.message2.NumberFormatterFactory
All Implemented Interfaces:
FormatterFactory

class NumberFormatterFactory extends Object implements FormatterFactory
Creates a Formatter doing numeric formatting, similar to {exp, number} in MessageFormat.
  • Constructor Details

    • NumberFormatterFactory

      NumberFormatterFactory()
  • Method Details

    • createFormatter

      public Formatter createFormatter(Locale locale, Map<String,Object> fixedOptions)
      The method that is called to create a formatter.
      Specified by:
      createFormatter in interface FormatterFactory
      Parameters:
      locale - the locale to use for formatting.
      fixedOptions - the options to use for formatting. The keys and values are function dependent.
      Returns:
      the formatter.