Class NumberFunctionFactory
java.lang.Object
com.ibm.icu.message2.NumberFunctionFactory
- All Implemented Interfaces:
FunctionFactory
Creates a
Function doing numeric formatting, similar to {exp, number}
in MessageFormat, and plural selection,
similar to {exp, plural} and to {exp, selectordinal}
in MessageFormat.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classprivate static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe method that is called to create a function.private static LocalizedNumberFormatter(package private) static StringgetCurrency(Map<String, Object> options)
-
Field Details
-
kind
-
CURRENCY_ISO_CODE
-
-
Constructor Details
-
NumberFunctionFactory
-
-
Method Details
-
create
The method that is called to create a function.- Specified by:
createin interfaceFunctionFactory- Parameters:
locale- the locale to use for formatting / selection.fixedOptions- the options to use for formatting / selection. The keys and values are function dependent.- Returns:
- the function.
-
functionForOptions
-
getCurrency
-