Package com.ibm.icu.message2
Class NumberFormatterFactory
- java.lang.Object
-
- com.ibm.icu.message2.NumberFormatterFactory
-
- All Implemented Interfaces:
FormatterFactory
,SelectorFactory
class NumberFormatterFactory extends java.lang.Object implements FormatterFactory, SelectorFactory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
NumberFormatterFactory.NumberFormatterImpl
private static class
NumberFormatterFactory.PluralSelectorImpl
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
kind
-
Constructor Summary
Constructors Constructor Description NumberFormatterFactory(java.lang.String kind)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.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.private static LocalizedNumberFormatter
formatterForOptions(java.util.Locale locale, java.util.Map<java.lang.String,java.lang.Object> fixedOptions, 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 interfaceFormatterFactory
- 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 interfaceSelectorFactory
- 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)
-
-