Class java.text.DecimalFormatSymbols
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.text.DecimalFormatSymbols

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.

Version:
1.12 29 Jan 1997
Author:
Mark Davis, Alan Liu
See Also:
Locale, DecimalFormat

Constructor Index

 o java.text.DecimalFormatSymbols()
Create a DecimalFormatSymbols object for the default locale.
 o java.text.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 getPerMill()
character used for mille percent sign.
 o getPercent()
character used for 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 setPerMill(char)
 o setPercent(char)
 o setZeroDigit(char)

Constructors

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

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

Methods

 o clone
public java.lang.Object clone()
Standard override.

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

Overrides:
equals in class Object
 o getDecimalSeparator
public char getDecimalSeparator()
character used for decimal sign. Different for French, etc.

 o getDigit
public char getDigit()
character used for a digit in a pattern.

 o getGroupingSeparator
public char getGroupingSeparator()
character used for thousands separator. Different for French, etc.

 o getInfinity
public java.lang.String getInfinity()
character used to represent infinity. Almost always left unchanged.

 o getMinusSign
public char getMinusSign()
character used to represent minus sign. If no explicit negative format is specified, one is formed by prefixing minusSign to the positive format.

 o getNaN
public java.lang.String getNaN()
character used to represent NaN. Almost always left unchanged.

 o getPatternSeparator
public char getPatternSeparator()
character used to separate positive and negative subpatterns in a pattern.

 o getPerMill
public char getPerMill()
character used for mille percent sign. Different for Arabic, etc.

 o getPercent
public char getPercent()
character used for percent sign. Different for Arabic, etc.

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

 o hashCode
public int hashCode()
Override hashCode

Overrides:
hashCode in class Object
 o setDecimalSeparator
public void setDecimalSeparator(char decimalSeparator)
 o setDigit
public void setDigit(char digit)
 o setGroupingSeparator
public void setGroupingSeparator(char groupingSeparator)
 o setInfinity
public void setInfinity(String infinity)
 o setMinusSign
public void setMinusSign(char minusSign)
 o setNaN
public void setNaN(String NaN)
 o setPatternSeparator
public void setPatternSeparator(char patternSeparator)
 o setPerMill
public void setPerMill(char perMill)
 o setPercent
public void setPercent(char percent)
 o setZeroDigit
public void setZeroDigit(char zeroDigit)

All Packages  Class Hierarchy  This Package  Previous  Next  Index