API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.text. DecimalFormatSymbols View Source
Author(s)
Mark Davis
Alan Liu
Since
Version
1.46, 02/27/06
Serial
Hierarchy
 Object
      DecimalFormatSymbols
Implements
 Cloneable
 Serializable
Subclasses
Description
public class DecimalFormatSymbols
  This class represents the set of symbols (such as the decimal separator, the grouping separator, and so on) needed by DecimalFormat to format numbers.
See also:    Locale DecimalFormat
Constructors
public DecimalFormatSymbols ()
  Create a DecimalFormatSymbols object for the default locale.
public DecimalFormatSymbols (Locale locale)
  Create a DecimalFormatSymbols object for the given locale.
Methods
Hide/Show inherited methods
public Object clone ()
Standard override.
public boolean equals (Object obj)
Override equals.
publicstatic Locale getAvailableLocales ()
  Returns an array of all locales for which the getInstance methods of this class can return localized instances.
public Currency getCurrency ()
  Gets the currency of these DecimalFormatSymbols.
public String getCurrencySymbol ()
  Returns the currency symbol for the currency of these DecimalFormatSymbols in their locale.
public char getDecimalSeparator ()
  Gets the character used for decimal sign.
public char getDigit ()
Gets the character used for a digit in a pattern.
pack-private char getExponentialSymbol ()
Returns the character used to separate the mantissa from the exponent.
public String getExponentSeparator ()
  Returns the string used to separate the mantissa from the exponent.
public char getGroupingSeparator ()
  Gets the character used for thousands separator.
public String getInfinity ()
  Gets the string used to represent infinity.
publicfinalstatic DecimalFormatSymbols getInstance ()
  Gets the DecimalFormatSymbols instance for the default locale.
publicfinalstatic DecimalFormatSymbols getInstance (Locale locale)
  Gets the DecimalFormatSymbols instance for the specified locale.
public String getInternationalCurrencySymbol ()
  Returns the ISO 4217 currency code of the currency of these DecimalFormatSymbols.
public char getMinusSign ()
  Gets the character used to represent minus sign.
public char getMonetaryDecimalSeparator ()
  Returns the monetary decimal separator.
public String getNaN ()
  Gets the string used to represent "not a number".
public char getPatternSeparator ()
Gets the character used to separate positive and negative subpatterns in a pattern.
public char getPercent ()
  Gets the character used for percent sign.
public char getPerMill ()
  Gets the character used for per mille sign.
public char getZeroDigit ()
  Gets the character used for zero.
public int hashCode ()
Override hashCode.
public void setCurrency (Currency currency)
  Sets the currency of these DecimalFormatSymbols.
public void setCurrencySymbol (String currency)
  Sets the currency symbol for the currency of these DecimalFormatSymbols in their locale.
public void setDecimalSeparator (char decimalSeparator)
  Sets the character used for decimal sign.
public void setDigit (char digit)
Sets the character used for a digit in a pattern.
pack-private void setExponentialSymbol (char exp)
Sets the character used to separate the mantissa from the exponent.
public void setExponentSeparator (String exp)
  Sets the string used to separate the mantissa from the exponent.
public void setGroupingSeparator (char groupingSeparator)
  Sets the character used for thousands separator.
public void setInfinity (String infinity)
  Sets the string used to represent infinity.
public void setInternationalCurrencySymbol (String currencyCode)
  Sets the ISO 4217 currency code of the currency of these DecimalFormatSymbols.
public void setMinusSign (char minusSign)
  Sets the character used to represent minus sign.
public void setMonetaryDecimalSeparator (char sep)
  Sets the monetary decimal separator.
public void setNaN (String NaN)
  Sets the string used to represent "not a number".
public void setPatternSeparator (char patternSeparator)
Sets the character used to separate positive and negative subpatterns in a pattern.
public void setPercent (char percent)
  Sets the character used for percent sign.
public void setPerMill (char perMill)
  Sets the character used for per mille sign.
public void setZeroDigit (char zeroDigit)
  Sets the character used for zero.
Fields
Hide/Show inherited fields
pack-privatefinalstatic long serialVersionUID = "5772796243397350300"
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar