public class UnlocalizedNumberFormatter extends NumberFormatterSettings<UnlocalizedNumberFormatter>
NumberFormatter
Modifier and Type | Method | Description |
---|---|---|
LocalizedNumberFormatter |
locale(ULocale locale) |
ULocale version of the
locale(Locale) setter above. |
LocalizedNumberFormatter |
locale(Locale locale) |
Associate the given locale with the number formatter.
|
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.