Package com.ibm.icu.message2
Class NumberFormatterFactory.NumberFormatterImpl
java.lang.Object
com.ibm.icu.message2.NumberFormatterFactory.NumberFormatterImpl
- All Implemented Interfaces:
Formatter
- Enclosing class:
NumberFormatterFactory
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final boolean
private final LocalizedNumberFormatter
private final Locale
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA method that takes the object to format and returns the i18n-aware formatted placeholder.private static LocalizedNumberFormatter
formatterForOptions
(Locale locale, Map<String, Object> fixedOptions) formatToString
(Object toFormat, Map<String, Object> variableOptions) A method that takes the object to format and returns the i18n-aware string representation.(package private) LocalizedNumberFormatter
-
Field Details
-
locale
-
fixedOptions
-
icuFormatter
-
advanced
final boolean advanced
-
-
Constructor Details
-
NumberFormatterImpl
-
-
Method Details
-
formatterForOptions
private static LocalizedNumberFormatter formatterForOptions(Locale locale, Map<String, Object> fixedOptions) -
getIcuFormatter
LocalizedNumberFormatter getIcuFormatter() -
formatToString
A method that takes the object to format and returns the i18n-aware string representation.- Specified by:
formatToString
in interfaceFormatter
- Parameters:
toFormat
- the object to format.variableOptions
- options that are not know at build time.- Returns:
- the formatted string.
-
format
A method that takes the object to format and returns the i18n-aware formatted placeholder.
-