DecimalFormatSymbols


public class DecimalFormatSymbols
extends Object implements Cloneable, Serializable

java.lang.Object
   ↳ android.icu.text.DecimalFormatSymbols


[icu enhancement] ICU's replacement for DecimalFormatSymbols. Methods, fields, and other functionality specific to ICU are labeled '[icu]'. This class represents the set of symbols (such as the decimal separator, the grouping separator, and so on) needed by DecimalFormat to format numbers. DecimalFormat creates for itself an instance of DecimalFormatSymbols from its locale data. If you need to change any of these symbols, you can get the DecimalFormatSymbols object from your DecimalFormat and modify it.

Summary

Constants

int CURRENCY_SPC_CURRENCY_MATCH

[icu] Indicates the currency match pattern used in getPatternForCurrencySpacing(int, boolean).

int CURRENCY_SPC_INSERT

[icu] Indicates the insertion value used in getPatternForCurrencySpacing(int, boolean).

int CURRENCY_SPC_SURROUNDING_MATCH

[icu] Indicates the surrounding match pattern used in getPatternForCurrencySpacing(int, boolean).

Public constructors

DecimalFormatSymbols()

Creates a DecimalFormatSymbols object for the default FORMAT locale.

DecimalFormatSymbols(ULocale locale)

[icu] Creates a DecimalFormatSymbols object for the given locale.

DecimalFormatSymbols(Locale locale)

Creates a DecimalFormatSymbols object for the given locale.

Public methods

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

static DecimalFormatSymbols forNumberingSystem(ULocale locale, NumberingSystem ns)

[icu] Returns a DecimalFormatSymbols instance for the given locale with digits and symbols corresponding to the given NumberingSystem.

static DecimalFormatSymbols forNumberingSystem(Locale locale, NumberingSystem ns)

[icu] Returns a DecimalFormatSymbols instance for the given locale with digits and symbols corresponding to the given NumberingSystem.

static Locale[] getAvailableLocales()

Returns an array of all locales for which the getInstance methods of this class can return localized instances.

static ULocale[] getAvailableULocales()

[icu] Returns an array of all locales for which the getInstance methods of this class can return localized instances.

Currency getCurrency()

Returns the currency symbol, for DecimalFormatSymbols.getCurrency()