public class UnlocalizedNumberFormatter extends NumberFormatterSettings<UnlocalizedNumberFormatter>
NumberFormatter
Modifier and Type | Method and Description |
---|---|
LocalizedNumberFormatter |
locale(Locale locale)
Associate the given locale with the number formatter.
|
LocalizedNumberFormatter |
locale(ULocale locale)
ULocale version of the
locale(Locale) setter above. |
decimal, displayOptions, equals, grouping, hashCode, integerWidth, macros, notation, padding, perUnit, precision, roundingMode, scale, sign, symbols, symbols, threshold, toSkeleton, unit, unitDisplayCase, unitWidth, usage
public LocalizedNumberFormatter locale(Locale locale)
To use the Java default locale, call Locale.getDefault():
NumberFormatter.with(). ... .locale(Locale.getDefault())
locale
- The locale to use when loading data for number formatting.public LocalizedNumberFormatter locale(ULocale locale)
locale(Locale)
setter above.locale
- The locale to use when loading data for number formatting.locale(Locale)
Copyright © 2016 Unicode, Inc. and others.