Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

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 Summary
 DecimalFormatSymbols()
Create a DecimalFormatSymbols object for the default locale.
 DecimalFormatSymbols(Locale locale)
Create a DecimalFormatSymbols object for the given locale.
 

Method Summary
Object  clone()
Standard override.
boolean  equals(Object obj)
Override equals
char  getDecimalSeparator()
character used for decimal sign.
char  getDigit()
character used for a digit in a pattern.
char  getGroupingSeparator()
character used for thousands separator.
String  getInfinity()
character used to represent infinity.
char  getMinusSign()
character used to represent minus sign.
String  getNaN()
character used to represent NaN.
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  getZeroDigit()
character used for zero.
int  hashCode()
Override hashCode
void  setDecimalSeparator(char decimalSeparator)
 
void  setDigit(char digit)
 
void  setGroupingSeparator(char groupingSeparator)
 
void  setInfinity(String infinity)
 
void  setMinusSign(char minusSign)
 
void  setNaN(String NaN)
 
void  setPatternSeparator(char patternSeparator)
 
void  setPercent(char percent)
 
void  setPerMill(char perMill)
 
void  setZeroDigit(char zeroDigit)
 
 
Methods inherited from class java.lang.Object
 clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecimalFormatSymbols

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

DecimalFormatSymbols

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

getZeroDigit

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

setZeroDigit

public void setZeroDigit(char zeroDigit)

getGroupingSeparator

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

setGroupingSeparator

public void setGroupingSeparator(char groupingSeparator)

getDecimalSeparator

public char getDecimalSeparator()
character used for decimal sign. Different for French, etc.

setDecimalSeparator

public void setDecimalSeparator(char decimalSeparator)

getPerMill

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

setPerMill

public void setPerMill(char perMill)

getPercent

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

setPercent

public void setPercent(char percent)

getDigit

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

setDigit

public void setDigit(char digit)

getPatternSeparator

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

setPatternSeparator

public void setPatternSeparator(char patternSeparator)

getInfinity

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

setInfinity

public void setInfinity(String infinity)

getNaN

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

setNaN

public void setNaN(String NaN)

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.

setMinusSign

public void setMinusSign(char minusSign)

clone

public Object clone()
Standard override.
Overrides:
clone in class Object

equals

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

hashCode

public int hashCode()
Override hashCode
Overrides:
hashCode in class Object

Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

Submit a bug or feature
Submit comments/suggestions about new javadoc look.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.