Class NumberFormatterFactory.NumberFormatterImpl

java.lang.Object
com.ibm.icu.message2.NumberFormatterFactory.NumberFormatterImpl
All Implemented Interfaces:
Formatter
Enclosing class:
NumberFormatterFactory

static class NumberFormatterFactory.NumberFormatterImpl extends Object implements Formatter
  • Field Details

  • Constructor Details

  • Method Details

    • formatterForOptions

      private static LocalizedNumberFormatter formatterForOptions(Locale locale, Map<String,Object> fixedOptions)
    • getIcuFormatter

      LocalizedNumberFormatter getIcuFormatter()
    • formatToString

      public String formatToString(Object toFormat, Map<String,Object> variableOptions)
      A method that takes the object to format and returns the i18n-aware string representation.
      Specified by:
      formatToString in interface Formatter
      Parameters:
      toFormat - the object to format.
      variableOptions - options that are not know at build time.
      Returns:
      the formatted string.
    • format

      public FormattedPlaceholder format(Object toFormat, Map<String,Object> variableOptions)
      A method that takes the object to format and returns the i18n-aware formatted placeholder.
      Specified by:
      format in interface Formatter
      Parameters:
      toFormat - the object to format.
      variableOptions - options that are not know at build time.
      Returns:
      the formatted placeholder.