java.text
public final class DecimalFormatSymbols extends Object implements Cloneable, Serializable
DecimalFormat
to format numbers and currency. These are
normally handled automatically, but an application can override
values as desired using this class.
UNKNOWN: February 24, 1999
Constructor Summary | |
---|---|
DecimalFormatSymbols()
This method initializes a new instance of
DecimalFormatSymbols for the default locale. | |
DecimalFormatSymbols(Locale loc)
This method initializes a new instance of
DecimalFormatSymbols for the specified locale.
|
Method Summary | |
---|---|
Object | clone() |
boolean | equals(Object obj)
This method this this object for equality against the specified object.
|
Currency | getCurrency()
Returns the currency corresponding to the currency symbol stored
in the instance of DecimalFormatSymbols .
|
String | getCurrencySymbol()
This method returns the currency symbol in local format. |
char | getDecimalSeparator()
This method returns the character used as the decimal point.
|
char | getDigit()
This method returns the character used to represent a digit in a
format pattern string.
|
char | getGroupingSeparator()
This method sets the character used to separate groups of digits. |
String | getInfinity()
This method returns the character used to represent infinity.
|
String | getInternationalCurrencySymbol()
This method returns the currency symbol in international format. |
char | getMinusSign()
This method returns the character used to represent the minus sign.
|
char | getMonetaryDecimalSeparator()
This method returns the character used to represent the decimal
point for currency values.
|
String | getNaN()
This method returns the string used to represent the NaN (not a number)
value.
|
char | getPatternSeparator()
This method returns the character used to separate positive and negative
subpatterns in a format pattern.
|
char | getPercent()
This method returns the character used as the percent sign.
|
char | getPerMill()
This method returns the character used as the per mille character.
|
char | getZeroDigit()
This method returns the character used to represent the digit zero.
|
int | hashCode()
This method returns a hash value for this object.
|
void | setCurrency(Currency currency)
This method sets the currency to the specified value.
|
void | setCurrencySymbol(String currency)
This method sets the currency symbol to the specified value.
|
void | setDecimalSeparator(char decimalSep)
This method sets the decimal point character to the specified value.
|
void | setDigit(char digit)
This method sets the character used to represents a digit in a format
string to the specified value.
|
void | setGroupingSeparator(char groupSep)
This method sets the character used to separate groups of digits.
|
void | setInfinity(String infinity)
This method sets the string used to represents infinity.
|
void | setInternationalCurrencySymbol(String currency)
This method sets the international currency symbols to the
specified value.
|
void | setMinusSign(char minusSign)
This method sets the character used to represent the minus sign.
|
void | setMonetaryDecimalSeparator(char decimalSep)
This method sets the character used for the decimal point in currency
values.
|
void | setNaN(String nan)
This method sets the string used to represent the NaN (not a
number) value.
|
void | setPatternSeparator(char patternSep)
This method sets the character used to separate positive and negative
subpatterns in a format pattern.
|
void | setPercent(char percent)
This method sets the character used as the percent sign.
|
void | setPerMill(char perMill)
This method sets the character used as the per mille character.
|
void | setZeroDigit(char zeroDigit)
This method sets the character used to represent the digit zero.
|
DecimalFormatSymbols
for the default locale.DecimalFormatSymbols
for the specified locale.
Parameters: loc The local to load symbols for.
null
.DecimalFormatSymbols
.Returns: true
if the specified object is equal to this
object, false
otherwise.
DecimalFormatSymbols
.
Returns: A new instance of Currency
if
the currency code matches a known one.
Returns: The currency symbol in local format.
Returns: The character used as the decimal point.
Returns: The character used to represent a digit in a format pattern string.
Returns: The character used to separate groups of digits.
Returns: The character used to represent infinity.
Returns: The currency symbol in international format.
Returns: The character used to represent the minus sign.
Returns: The decimal point character used in currency values.
Returns: The string used to represent NaN
Returns: The character used to separate positive and negative subpatterns in a format pattern.
Returns: The character used as the percent sign.
Returns: The per mille character.
Returns: The character used to represent the digit zero.
Returns: A hash value for this object.
Parameters: currency The new currency
Parameters: currency The new currency symbol
Parameters: decimalSep The new decimal point character
Parameters: digit The character used to represent a digit in a format pattern.
Parameters: groupSep The character used to separate groups of digits.
Parameters: infinity The string used to represent infinity.
Parameters: intlCurrencySymbol The new international currency symbol.
Parameters: minusSign The character used to represent the minus sign.
Parameters: decimalSep The decimal point character used in currency values.
Parameters: nan The string used to represent NaN
Parameters: patternSep The character used to separate positive and negative subpatterns in a format pattern.
Parameters: percent The character used as the percent sign.
Parameters: perMill The per mille character.
Parameters: zeroDigit The character used to represent the digit zero.