|
Build 1.0_r1(from source) | |||||||||
| 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.
| Field Summary | |
|---|---|
(package private) char[] |
patternChars
|
| 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()
Returns 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()
Returns the currency. |
String |
getCurrencySymbol()
Returns the currency symbol. |
char |
getDecimalSeparator()
Returns the character which represents the decimal point in a number. |
char |
getDigit()
Returns the character which represents a single digit in a format pattern. |
(package private) char |
getExponential()
|
char |
getGroupingSeparator()
Returns the character used as the thousands separator in a number. |
String |
getInfinity()
Returns the String which represents infinity. |
String |
getInternationalCurrencySymbol()
Returns the international currency symbol. |
(package private) String |
getLocalPatternChars()
|
char |
getMinusSign()
Returns the minus sign character. |
char |
getMonetaryDecimalSeparator()
Returns the character which represents the decimal point in a monetary value. |
String |
getNaN()
Returns the String which represents NaN. |
char |
getPatternSeparator()
Returns the character which separates the positive and negative patterns in a format pattern. |
char |
getPercent()
Returns the percent character. |
char |
getPerMill()
Returns the mille percent sign character. |
char |
getZeroDigit()
Returns the character which represents zero. |
int |
hashCode()
Returns 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. |
(package private) void |
setExponential(char value)
|
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 |
| Field Detail |
|---|
transient char[] patternChars
| 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 nullsetInternationalCurrencySymbol() has been previously called
with a value that is not a valid ISO 4217 currency code.
setCurrency(),
or setInternationalCurrencySymbol(), or
setCurrency(Currency),
setInternationalCurrencySymbol(String)public String getInternationalCurrencySymbol()
public String getCurrencySymbol()
public char getDecimalSeparator()
public char getDigit()
public char getGroupingSeparator()
public String getInfinity()
String getLocalPatternChars()
public char getMinusSign()
public char getMonetaryDecimalSeparator()
public String getNaN()
public char getPatternSeparator()
public char getPercent()
public char getPerMill()
public char getZeroDigit()
char getExponential()
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 charactervoid setExponential(char value)
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||