ICU Enhancement
This class is ICU's replacement for java..
ICU
Methods, fields, and other functionality specific to ICU are labeled 'ICU'.
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.
java.util.Locale , DecimalFormat
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | DecimalFormatSymbols.DecFmtDataSink
Sink for enumerating all of the decimal format symbols (more specifically, anything under the "NumberElements.symbols" tree). |
| Modifier and Type | Field and Description |
|---|---|
| private ULocale | actualLocale
The locale containing data used to construct this object, or null. |
| private String | approximatelyString
The string used to indicate an approximately sign. |
| private static final CacheBase | cachedLocaleData
cache to hold the NumberElements of a Locale. |
| private transient int | codePointZero
Dealing with code points is faster than dealing with strings when formatting. |
| private transient Currency | |
| public static final int | |
| public static final int | |
| public static final int | |
| private String | |
| private String[] | |
| private String[] | |
| private String | currencySymbol
String denoting the local currency, e.g. "$". |
| private static final int | |
| private char | decimalSeparator
Character used for decimal sign. |
| private String | decimalSeparatorString
String used for decimal sign. |
| private static final char | |
| private static final char[] | |
| private static final String[] | |
| private static final char | |
| private static final char | |
| private static final char | |
| private static final char | |
| private static final char | |
| private char | digit
Character used for a digit in a pattern. |
| private char[] | digits
Array of characters used for the digits 0-9 in order. |
| private String[] | digitStrings
Array of Strings used for the digits 0-9 in order. |
| private char | exponential
The character used to distinguish the exponent in a number formatted in exponential notation, e.g. 'E' for a number such as "1.23E45". |
| private String | exponentMultiplicationSign
Exponent multiplication sign. |
| private String | exponentSeparator
The string used to separate the mantissa from the exponent. |
| private char | groupingSeparator
Character used for thousands separator. |
| private String | groupingSeparatorString
String used for thousands separator. |
| private String | infinity
Character used to represent infinity. |
| private String | intlCurrencySymbol
International string denoting the local currency, e.g. "USD". |
| private static final String | LATIN_NUMBERING_SYSTEM
Constants for path names in the data bundles. |
| private char | minusSign
Character used to represent minus sign. |
| private String | minusString
String versions of minus sign. |
| private char | monetaryGroupingSeparator
The grouping separator character used when formatting currency values. |
| private String | monetaryGroupingSeparatorString
The grouping separator string used when formatting currency values. |
| private char | monetarySeparator
The decimal separator character used when formatting currency values. |
| private String | monetarySeparatorString
The decimal separator string used when formatting currency values. |
| private String | NaN
Character used to represent NaN. |
| private static final String | |
| private char | padEscape
The character used to indicate a padding character in a format, e.g., '*' in a pattern such as "$*_#,##0.00". |
| private char | patternSeparator
Character used to separate positive and negative subpatterns in a pattern. |
| private char | percent
Character used for percent sign. |
| private String | percentString
String used for percent sign. |
| private char | perMill
Character used for mille percent sign. |
| private String | perMillString
String used for mille percent sign. |
| private char | plusSign
The character used to indicate a plus sign. |
| private String | plusString
String versions of plus sign. |
| private Locale | requestedLocale
The locale for which this object was constructed. |
| private int | serialVersionOnStream
Describes the version of |
| private static final long | |
| private char | sigDigit
Character used for a significant digit in a pattern. |
| private static final String[] | SYMBOL_DEFAULTS
List of default values for the symbols. |
| private static final String[] | SYMBOL_KEYS
List of field names to be loaded from the data files. |
| private static final String | |
| private ULocale | ulocale
The requested ULocale. |
| private ULocale | validLocale
The most specific locale containing any resource data, or null. |
| private char | zeroDigit
Character used for zero. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | DecimalFormatSymbols(Locale
the locale locale)Creates a DecimalFormatSymbols object for the given locale. |
| public | |
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public static DecimalFormatSymbols | Returns: A DecimalFormatSymbols instance.the locale. locale, NumberingSystem the numbering system. ns)ICU |
| public static DecimalFormatSymbols | Returns: A DecimalFormatSymbols instance.the locale. locale, NumberingSystem the numbering system. ns)ICU |
| public String | |
| public static Locale[] | Returns: An array ofLocales for which localized
DecimalFormatSymbols instances are available.Returns an array of all locales for which the |
| public static ULocale[] | Returns: An array ofULocales for which localized
DecimalFormatSymbols instances are available.ICU |
| public int | getCodePointZero()
Deprecated
This API is ICU internal only.
If the digit strings array corresponds to a sequence of increasing code points, this method
returns the code point corresponding to the first entry in the digit strings array.
|
| public Currency | Returns: the currency used, or nullReturns the currency symbol, for |
| public String | Returns: String currency pattern string
Deprecated
This API is for ICU internal use only
Internal API for NumberFormat
|
| public String | Returns: the local currency String.Returns the string denoting the local currency. |
| public char | |
| public String | |
| public char | |
| public char[] | Returns: The arrayReturns the array of characters used as digits, in order from 0 through 9 |
| public String[] | |
| public String[] | Returns: the array of digit strings
Deprecated
This API is ICU internal only.
Returns the array of strings used as digits, in order from 0 through 9
Package private method - doesn't create a defensively copy.
|
| public String | |
| public String | Returns: the localized exponent symbol, used in localized patterns and formatted stringsICU |
| public char | Returns: the thousands characterReturns the character used for grouping separator. |
| public String | |
| public String | |
| public static DecimalFormatSymbols | Returns: A DecimalFormatSymbols instance.Returns a DecimalFormatSymbols instance for the default locale. |
| public static DecimalFormatSymbols | Returns: A DecimalFormatSymbols instance.the locale. locale)Returns a DecimalFormatSymbols instance for the given locale. |
| public static DecimalFormatSymbols | Returns: A DecimalFormatSymbols instance.the locale. locale)Returns a DecimalFormatSymbols instance for the given locale. |
| public String | Returns: the international string denoting the local currencyReturns the international string denoting the local currency. |
| public Locale | Returns: the locale for which this object was constructedReturns the locale for which this object was constructed. |
| public final ULocale | Returns: the information specified by type, or null if this object was not constructed from locale data.type of information requested, either typecom. or com..ICU |
| public char | |
| public String | |
| public char | Returns: the monetary decimal separator characterReturns the monetary decimal separator. |
| public String | |
| public char | |
| public String | |
| public String | |
| public char | |
| public String | Returns: the value, or null.one of CURRENCY_SPC_CURRENCY_MATCH, CURRENCY_SPC_SURROUNDING_MATCH
or CURRENCY_SPC_INSERT itemType, boolean true to get the beforeCurrency)beforeCurrency values, false
to get the afterCurrency values.ICU |
| public char | Returns: the pattern separator characterReturns the character used to separate positive and negative subpatterns in a pattern. |
| public char | |
| public String | |
| public char | |
| public String | |
| public char | |
| public String | |
| public char | Returns: the significant digit pattern characterReturns the character used to represent a significant digit in a pattern. |
| public ULocale | Returns: the locale for which this object was constructedReturns the locale for which this object was constructed. |
| public char | |
| public int | |
| private void | |
| private void | |
| private static DecimalFormatSymbols. | |
| private void | readObject(ObjectInputStream stream)
Reads the default serializable fields, then if |
| public void | setApproximatelySignString(String approximatelySignString)
Deprecated
This API is for technology preview only.
|
| public void | |
| private void | |
| public void | setCurrencySymbol(String
the local currency String. currency)Sets the string denoting the local currency. |
| public void | setDecimalSeparator(char
the decimal character decimalSeparator)Sets the character used for decimal sign. |
| public void | |
| public void | |
| public void | setDigitStrings(String[]
The array of digit strings. The length of the array must be exactly 10. digitStrings)ICU |
| public void | |
| public void | setExponentSeparator(String
the localized exponent symbol, used in localized patterns
and formatted strings exp)ICU |
| public void | setGroupingSeparator(char
the thousands character groupingSeparator)Sets the character used for grouping separator. |
| public void | |
| public void | |
| public void | setInternationalCurrencySymbol(String
the international string denoting the local currency. currency)Sets the international string denoting the local currency. |
| pack-priv final void | |
| public void | setMinusSign(char
the minus sign character minusSign)Sets the character used to represent minus sign. |
| public void | |
| public void | setMonetaryDecimalSeparator(char
the monetary decimal separator character sep)Sets the monetary decimal separator. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setPatternForCurrencySpacing(int
one of CURRENCY_SPC_CURRENCY_MATCH, CURRENCY_SPC_SURROUNDING_MATCH
or CURRENCY_SPC_INSERT itemType, boolean true if the pattern is for before the currency symbol.
false if the pattern is for after it. beforeCurrency, String string to override current setting; can be null. pattern)ICU |
| public void | setPatternSeparator(char
the pattern separator character patternSeparator)Sets the character used to separate positive and negative subpatterns in a pattern. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setPlusSignString(String
the plus sign string, used in localized patterns and formatted
strings plusSignString)ICU |
| public void | setSignificantDigit(char
the significant digit pattern character sigDigit)Sets the character used to represent a significant digit in a pattern. |
| public void |