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

Constructor Index

 o DecimalFormatSymbols()
Create a DecimalFormatSymbols object for the default locale.
 o DecimalFormatSymbols(Locale)
Create a DecimalFormatSymbols object for the given locale.

Method Index

 o clone()
Standard override.
 o equals(Object)
Override equals
 o getDecimalSeparator()
character used for decimal sign.
 o getDigit()
character used for a digit in a pattern.
 o getGroupingSeparator()
character used for thousands separator.
 o getInfinity()
character used to represent infinity.
 o getMinusSign()
character used to represent minus sign.
 o getNaN()
character used to represent NaN.
 o getPatternSeparator()
character used to separate positive and negative subpatterns in a pattern.
 o getPercent()
character used for percent sign.
 o getPerMill()
character used for mille percent sign.
 o getZeroDigit()
character used for zero.
 o hashCode()
Override hashCode
 o setDecimalSeparator(char)
 o setDigit(char)
 o setGroupingSeparator(char)
 o setInfinity(String)
 o setMinusSign(char)
 o setNaN(String)
 o setPatternSeparator(char)
 o setPercent(char)
 o setPerMill(char)
 o setZeroDigit(char)

Constructors

 o DecimalFormatSymbols
    method DecimalFormatSymbols() public 
Create a DecimalFormatSymbols object for the default locale.

 o DecimalFormatSymbols
    method DecimalFormatSymbols(locale=Locale) public 
Create a DecimalFormatSymbols object for the given locale.

Methods

 o getZeroDigit
    method getZeroDigit() returns char public     
character used for zero. Different for Arabic, etc.

 o setZeroDigit
    method setZeroDigit(zeroDigit=char)  public     
 o getGroupingSeparator
    method getGroupingSeparator() returns char public     
character used for thousands separator. Different for French, etc.

 o setGroupingSeparator
    method setGroupingSeparator(groupingSeparator=char)  public     
 o getDecimalSeparator
    method getDecimalSeparator() returns char public     
character used for decimal sign. Different for French, etc.

 o setDecimalSeparator
    method setDecimalSeparator(decimalSeparator=char)  public     
 o getPerMill
    method getPerMill() returns char public     
character used for mille percent sign. Different for Arabic, etc.

 o setPerMill
    method setPerMill(perMill=char)  public     
 o getPercent
    method getPercent() returns char public     
character used for percent sign. Different for Arabic, etc.

 o setPercent
    method setPercent(percent=char)  public     
 o getDigit
    method getDigit() returns char public     
character used for a digit in a pattern.

 o setDigit
    method setDigit(digit=char)  public     
 o getPatternSeparator
    method getPatternSeparator() returns char public     
character used to separate positive and negative subpatterns in a pattern.

 o setPatternSeparator
    method setPatternSeparator(patternSeparator=char)  public     
 o getInfinity
    method getInfinity() returns String public     
character used to represent infinity. Almost always left unchanged.

 o setInfinity
    method setInfinity(infinity=String)  public     
 o getNaN
    method getNaN() returns String public     
character used to represent NaN. Almost always left unchanged.

 o setNaN
    method setNaN(NaN=String)  public     
 o 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.

 o setMinusSign
    method setMinusSign(minusSign=char)  public     
 o clone
    method clone() returns Object public     
Standard override.

Overrides:
clone in class Object
 o equals
    method equals(obj=Object) returns boolean public     
Override equals

Overrides:
equals in class Object
 o hashCode
    method hashCode() returns int public     
Override hashCode

Overrides:
hashCode in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index