|
Final | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.text.DecimalFormatSymbols
public final class DecimalFormatSymbols
DecimalFormatSymbols holds the symbols used in the formating and parsing of numbers.
| Constructor Summary | |
|---|---|
DecimalFormatSymbols()
Constructs a new DecimalFormatSymbols containing the symbols for the default Locale. |
|
DecimalFormatSymbols(Locale locale)
Constructs a new DecimalFormatSymbols containing the symbols for the specified Locale. |
|
| Method Summary | |
|---|---|
Object |
clone()
Answers a new DecimalFormatSymbols with the same symbols as this DecimalFormatSymbols. |
boolean |
equals(Object object)
Compares the specified object to this DecimalFormatSymbols and answer if they are equal. |
Currency |
getCurrency()
Answers the currency. |
String |
getCurrencySymbol()
Answers the currency symbol. |
char |
getDecimalSeparator()
Answers the character which represents the decimal point in a number. |
char |
getDigit()
Answers the character which represents a single digit in a format pattern. |
char |
getGroupingSeparator()
Answers the character used as the thousands separator in a number. |
String |
getInfinity()
Answers the String which represents infinity. |
String |
getInternationalCurrencySymbol()
Answers the international currency symbol. |
char |
getMinusSign()
Answers the minus sign character. |
char |
getMonetaryDecimalSeparator()
Answers the character which represents the decimal point in a monetary value. |
String |
getNaN()
Answers the String which represents NaN. |
char |
getPatternSeparator()
Answers the character which separates the positive and negative patterns in a format pattern. |
char |
getPercent()
Answers the percent character. |
char |
getPerMill()
Answers the mille percent sign character. |
char |
getZeroDigit()
Answers the character which represents zero. |
int |
hashCode()
Answers an integer hash code for the receiver. |
void |
setCurrency(Currency currency)
Sets the currency. |
void |
setCurrencySymbol(String value)
Sets the currency symbol. |
void |
setDecimalSeparator(char value)
Sets the character which represents the decimal point in a number. |
void |
setDigit(char value)
Sets the character which represents a single digit in a format pattern. |
void |
setGroupingSeparator(char value)
Sets the character used as the thousands separator in a number. |
void |
setInfinity(String value)
Sets the String which represents infinity. |
void |
setInternationalCurrencySymbol(String value)
Sets the international currency symbol. |
void |
setMinusSign(char value)
Sets the minus sign character. |
void |
setMonetaryDecimalSeparator(char value)
Sets the character which represents the decimal point in a monetary value. |
void |
setNaN(String value)
Sets the String which represents NaN. |
void |
setPatternSeparator(char value)
Sets the character which separates the positive and negative patterns in a format pattern. |
void |
setPercent(char value)
Sets the percent character. |
void |
setPerMill(char value)
Sets the mille percent sign character. |
void |
setZeroDigit(char value)
Sets the character which represents zero. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DecimalFormatSymbols()
public DecimalFormatSymbols(Locale locale)
locale - the Locale| Method Detail |
|---|
public Object clone()
clone in class ObjectCloneablepublic boolean equals(Object object)
equals in class Objectobject - the object to compare with this object
hashCode()public Currency getCurrency()
null is returned
if setInternationalCurrencySymbol() has been previously called
with a value that is not a valid ISO 4217 currency code.
- Returns:
the currency that was set in the constructor, setCurrency(),
or setInternationalCurrencySymbol(), or nullsetCurrency(Currency),
setInternationalCurrencySymbol(String)public String getInternationalCurrencySymbol()
public String getCurrencySymbol()
public char getDecimalSeparator()
public char getDigit()
public char getGroupingSeparator()
public String getInfinity()
public char getMinusSign()
public char getMonetaryDecimalSeparator()
public String getNaN()
public char getPatternSeparator()
public char getPercent()
public char getPerMill()
public char getZeroDigit()
public int hashCode()
hashCode in class Objectequals(java.lang.Object)public void setCurrency(Currency currency)
The international currency symbol and currency symbol are updated, but the min and max number of fraction digits stay the same.
currency - the new currency
NullPointerException - if currency is nullpublic void setInternationalCurrencySymbol(String value)
currency and currency symbol also are updated, if
value is a valid ISO4217 currency code.
The min and max number of fraction digits stay the same.
value - currency codepublic void setCurrencySymbol(String value)
value - a Stringpublic void setDecimalSeparator(char value)
value - the decimal separator characterpublic void setDigit(char value)
value - the digit characterpublic void setGroupingSeparator(char value)
value - the grouping separator characterpublic void setInfinity(String value)
value - the Stringpublic void setMinusSign(char value)
value - the minus sign characterpublic void setMonetaryDecimalSeparator(char value)
value - the monetary decimal separator characterpublic void setNaN(String value)
value - the Stringpublic void setPatternSeparator(char value)
value - the pattern separator characterpublic void setPercent(char value)
value - the percent characterpublic void setPerMill(char value)
value - the mille percent characterpublic void setZeroDigit(char value)
value - the zero digit character
|
Final | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||