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