Class NumberFormatterFactory

    • Field Detail

      • kind

        private final java.lang.String kind
    • Constructor Detail

      • NumberFormatterFactory

        public NumberFormatterFactory​(java.lang.String kind)
    • Method Detail

      • createFormatter

        public Formatter createFormatter​(java.util.Locale locale,
                                         java.util.Map<java.lang.String,​java.lang.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.
      • createSelector

        public Selector createSelector​(java.util.Locale locale,
                                       java.util.Map<java.lang.String,​java.lang.Object> fixedOptions)
        The method that is called to create a selector.
        Specified by:
        createSelector in interface SelectorFactory
        Parameters:
        locale - the locale to use for selection.
        fixedOptions - the options to use for selection. The keys and values are function dependent.
        Returns:
        The Selector.
      • formatterForOptions

        private static LocalizedNumberFormatter formatterForOptions​(java.util.Locale locale,
                                                                    java.util.Map<java.lang.String,​java.lang.Object> fixedOptions,
                                                                    java.lang.String kind)