public
class
UnlocalizedNumberFormatter
extends NumberFormatterSettings<UnlocalizedNumberFormatter>
java.lang.Object | ||
↳ | android.icu.number.NumberFormatterSettings<android.icu.number.UnlocalizedNumberFormatter> | |
↳ | android.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:
Public methods | |
---|---|
LocalizedNumberFormatter
|
locale(ULocale locale)
ULocale version of the |
LocalizedNumberFormatter
|
locale(Locale locale)
Associate the given locale with the number formatter. |
Inherited methods | |
---|---|
public LocalizedNumberFormatter locale (ULocale locale)
ULocale version of the locale(java.util.Locale)
setter above.
Parameters | |
---|---|
locale |
ULocale : The locale to use when loading data for number formatting. |
Returns | |
---|---|
LocalizedNumberFormatter |
The fluent chain |
See also:
public LocalizedNumberFormatter locale (Locale 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 |
Locale : The locale to use when loading data for number formatting. |
Returns | |
---|---|
LocalizedNumberFormatter |
The fluent chain |