Package com.ibm.icu.number
Class UnlocalizedNumberFormatter
java.lang.Object
com.ibm.icu.number.NumberFormatterSettings<UnlocalizedNumberFormatter>
com.ibm.icu.number.UnlocalizedNumberFormatter
A NumberFormatter that does not yet have a locale. In order to format numbers, a locale must be
specified.
Instances of this class are immutable and thread-safe.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionULocale version of thelocale(Locale)
setter above.Associate the given locale with the number formatter.Methods inherited from class com.ibm.icu.number.NumberFormatterSettings
decimal, displayOptions, equals, grouping, hashCode, integerWidth, macros, notation, padding, perUnit, precision, roundingMode, scale, sign, symbols, symbols, threshold, toSkeleton, unit, unitDisplayCase, unitWidth, usage
-
Method Details
-
locale
Associate the given locale with the number formatter. The locale is used for picking the appropriate symbols, formats, and other data for number display.To use the Java default locale, call Locale.getDefault():
NumberFormatter.with(). ... .locale(Locale.getDefault())
- Parameters:
locale
- The locale to use when loading data for number formatting.- Returns:
- The fluent chain
-
locale
ULocale version of thelocale(Locale)
setter above.- Parameters:
locale
- The locale to use when loading data for number formatting.- Returns:
- The fluent chain
- See Also:
-