Class UnlocalizedNumberFormatter
java.lang.Object
org.graalvm.shadowed.com.ibm.icu.number.NumberFormatterSettings<UnlocalizedNumberFormatter>
org.graalvm.shadowed.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 TypeMethodDescriptionAssociate the given locale with the number formatter.ULocale version of thelocale(Locale)setter above.Methods inherited from class org.graalvm.shadowed.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:
-