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