|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.icu.text.DecimalFormatSymbols
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.
This is an enhanced version of DecimalFormatSymbols
that
is based on the standard version in the JDK. New or changed functionality
is labeled
NEW.
Locale
,
DecimalFormat
, Serialized FormConstructor Summary | |
DecimalFormatSymbols()
Create a DecimalFormatSymbols object for the default locale. |
|
DecimalFormatSymbols(java.util.Locale locale)
Create a DecimalFormatSymbols object for the given locale. |
Method Summary | |
java.lang.Object |
clone()
Standard override. |
boolean |
equals(java.lang.Object obj)
Override equals |
java.lang.String |
getCurrencySymbol()
Return the string denoting the local currency. |
char |
getDecimalSeparator()
character used for decimal sign. |
char |
getDigit()
character used for a digit in a pattern. |
java.lang.String |
getExponentSeparator()
NEW Return the string used to separate the mantissa from the exponent. |
char |
getGroupingSeparator()
character used for thousands separator. |
java.lang.String |
getInfinity()
String used to represent infinity. |
java.lang.String |
getInternationalCurrencySymbol()
Return the international string denoting the local currency. |
char |
getMinusSign()
character used to represent minus sign. |
char |
getMonetaryDecimalSeparator()
Return the monetary decimal separator. |
java.lang.String |
getNaN()
String used to represent NaN. |
char |
getPadEscape()
NEW Return the character used to pad numbers out to a specified width. |
char |
getPatternSeparator()
character used to separate positive and negative subpatterns in a pattern. |
char |
getPercent()
character used for percent sign. |
char |
getPerMill()
character used for mille percent sign. |
char |
getPlusSign()
NEW Return the localized plus sign. |
char |
getZeroDigit()
character used for zero. |
int |
hashCode()
Override hashCode |
void |
setCurrencySymbol(java.lang.String currency)
Set the string denoting the local currency. |
void |
setDecimalSeparator(char decimalSeparator)
|
void |
setDigit(char digit)
|
void |
setExponentSeparator(java.lang.String exp)
NEW Set the string used to separate the mantissa from the exponent. |
void |
setGroupingSeparator(char groupingSeparator)
|
void |
setInfinity(java.lang.String infinity)
|
void |
setInternationalCurrencySymbol(java.lang.String currency)
Set the international string denoting the local currency. |
void |
setMinusSign(char minusSign)
|
void |
setMonetaryDecimalSeparator(char sep)
Set the monetary decimal separator. |
void |
setNaN(java.lang.String NaN)
|
void |
setPadEscape(char c)
NEW Set the character used to pad numbers out to a specified width. |
void |
setPatternSeparator(char patternSeparator)
|
void |
setPercent(char percent)
|
void |
setPerMill(char perMill)
|
void |
setPlusSign(char plus)
NEW Set the localized plus sign. |
void |
setZeroDigit(char zeroDigit)
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DecimalFormatSymbols()
public DecimalFormatSymbols(java.util.Locale locale)
Method Detail |
public char getZeroDigit()
public void setZeroDigit(char zeroDigit)
public char getGroupingSeparator()
public void setGroupingSeparator(char groupingSeparator)
public char getDecimalSeparator()
public void setDecimalSeparator(char decimalSeparator)
public char getPerMill()
public void setPerMill(char perMill)
public char getPercent()
public void setPercent(char percent)
public char getDigit()
public void setDigit(char digit)
public char getPatternSeparator()
public void setPatternSeparator(char patternSeparator)
public java.lang.String getInfinity()
public void setInfinity(java.lang.String infinity)
public java.lang.String getNaN()
public void setNaN(java.lang.String NaN)
public char getMinusSign()
public void setMinusSign(char minusSign)
public java.lang.String getCurrencySymbol()
public void setCurrencySymbol(java.lang.String currency)
public java.lang.String getInternationalCurrencySymbol()
public void setInternationalCurrencySymbol(java.lang.String currency)
public char getMonetaryDecimalSeparator()
public void setMonetaryDecimalSeparator(char sep)
public java.lang.String getExponentSeparator()
setExponentSeparator(java.lang.String)
public void setExponentSeparator(java.lang.String exp)
exp
- the localized exponent symbol, used in localized patterns
and formatted stringsgetExponentSeparator()
public char getPlusSign()
setPlusSign(char)
,
setMinusSign(char)
,
getMinusSign()
public void setPlusSign(char plus)
plus
- the plus sign, used in localized patterns and formatted
stringsgetPlusSign()
,
setMinusSign(char)
,
getMinusSign()
public char getPadEscape()
setPadEscape(char)
,
DecimalFormat.getFormatWidth()
,
DecimalFormat.getPadPosition()
,
DecimalFormat.getPadCharacter()
public void setPadEscape(char c)
getPadEscape()
,
DecimalFormat.setFormatWidth(int)
,
DecimalFormat.setPadPosition(int)
,
DecimalFormat.setPadCharacter(char)
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |