All Packages Class Hierarchy This Package Previous Next Index
Class java.text.DecimalFormatSymbols
java.lang.Object
|
+----java.text.DecimalFormatSymbols
- public final class DecimalFormatSymbols
- extends Object
- implements Cloneable, Serializable
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.
- See Also:
- Locale, DecimalFormat
-
DecimalFormatSymbols()
- Create a DecimalFormatSymbols object for the default locale.
-
DecimalFormatSymbols(Locale)
- Create a DecimalFormatSymbols object for the given locale.
-
clone()
- Standard override.
-
equals(Object)
- Override equals
-
getDecimalSeparator()
- character used for decimal sign.
-
getDigit()
- character used for a digit in a pattern.
-
getGroupingSeparator()
- character used for thousands separator.
-
getInfinity()
- character used to represent infinity.
-
getMinusSign()
- character used to represent minus sign.
-
getNaN()
- character used to represent NaN.
-
getPatternSeparator()
- character used to separate positive and negative subpatterns
in a pattern.
-
getPercent()
- character used for percent sign.
-
getPerMill()
- character used for mille percent sign.
-
getZeroDigit()
- character used for zero.
-
hashCode()
- Override hashCode
-
setDecimalSeparator(char)
-
-
setDigit(char)
-
-
setGroupingSeparator(char)
-
-
setInfinity(String)
-
-
setMinusSign(char)
-
-
setNaN(String)
-
-
setPatternSeparator(char)
-
-
setPercent(char)
-
-
setPerMill(char)
-
-
setZeroDigit(char)
-
DecimalFormatSymbols
method DecimalFormatSymbols() public
- Create a DecimalFormatSymbols object for the default locale.
DecimalFormatSymbols
method DecimalFormatSymbols(locale=Locale) public
- Create a DecimalFormatSymbols object for the given locale.
getZeroDigit
method getZeroDigit() returns char public
- character used for zero. Different for Arabic, etc.
setZeroDigit
method setZeroDigit(zeroDigit=char) public
getGroupingSeparator
method getGroupingSeparator() returns char public
- character used for thousands separator. Different for French, etc.
setGroupingSeparator
method setGroupingSeparator(groupingSeparator=char) public
getDecimalSeparator
method getDecimalSeparator() returns char public
- character used for decimal sign. Different for French, etc.
setDecimalSeparator
method setDecimalSeparator(decimalSeparator=char) public
getPerMill
method getPerMill() returns char public
- character used for mille percent sign. Different for Arabic, etc.
setPerMill
method setPerMill(perMill=char) public
getPercent
method getPercent() returns char public
- character used for percent sign. Different for Arabic, etc.
setPercent
method setPercent(percent=char) public
getDigit
method getDigit() returns char public
- character used for a digit in a pattern.
setDigit
method setDigit(digit=char) public
getPatternSeparator
method getPatternSeparator() returns char public
- character used to separate positive and negative subpatterns
in a pattern.
setPatternSeparator
method setPatternSeparator(patternSeparator=char) public
getInfinity
method getInfinity() returns String public
- character used to represent infinity. Almost always left
unchanged.
setInfinity
method setInfinity(infinity=String) public
getNaN
method getNaN() returns String public
- character used to represent NaN. Almost always left
unchanged.
setNaN
method setNaN(NaN=String) public
getMinusSign
method getMinusSign() returns char public
- character used to represent minus sign. If no explicit
negative format is specified, one is formed by prefixing
minusSign to the positive format.
setMinusSign
method setMinusSign(minusSign=char) public
clone
method clone() returns Object public
- Standard override.
- Overrides:
- clone in class Object
equals
method equals(obj=Object) returns boolean public
- Override equals
- Overrides:
- equals in class Object
hashCode
method hashCode() returns int public
- Override hashCode
- Overrides:
- hashCode in class Object
All Packages Class Hierarchy This Package Previous Next Index