Interface FormatterFactory


@Deprecated public interface FormatterFactory
Deprecated.
This API is for technology preview only.
The interface that must be implemented for each formatting function name that can be used from MessageFormatter.

We use it to create and cache various formatters with various options.

  • Method Summary

    Modifier and Type
    Method
    Description
    createFormatter(Locale locale, Map<String,Object> fixedOptions)
    Deprecated.
    This API is for technology preview only.
  • Method Details

    • createFormatter

      @Deprecated Formatter createFormatter(Locale locale, Map<String,Object> fixedOptions)
      Deprecated.
      This API is for technology preview only.
      The method that is called to create a formatter.
      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.
      Throws:
      IllegalArgumentException