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 Detail

      • createFormatter

        @Deprecated
        Formatter createFormatter​(java.util.Locale locale,
                                  java.util.Map<java.lang.String,​java.lang.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:
        java.lang.IllegalArgumentException