当前位置 类层次 (JDK) 所有类 (JDK) 所有域和方法 (JDK)

类 java.text.DecimalFormatSymbols

java.lang.Object
   |
   +----java.text.DecimalFormatSymbols

public final class DecimalFormatSymbols
extends Object
implements Cloneable, Serializable

该类表示了 DecimalFormat 格式化数值所需要的符号集 ( 例如小数分隔符、分组分隔符等等 )。DecimalFormat 根据本地数据为自己创建一个 DecimalFormatSymbols 实例。 如果需要改变这些符号,可以从 DecimalFormat 中获得 DecimalFormatSymbols 对象并修改它。

参见:
Locale, DecimalFormat

构造子索引

DecimalFormatSymbols()
用缺省的语言环境创建一个 DecimalFormatSymbols 对象。
DecimalFormatSymbols(Locale)
用给定的语言环境创建一个 DecimalFormatSymbols 对象。

方法索引

clone()
标准覆盖。
equals(Object)
覆盖 equals。
getDecimalSeparator()
用于小数分隔符的字符。
getDigit()
某模式下的数字使用的字符。
getGroupingSeparator()
用于千进制分隔符字符。
getInfinity()
表示无穷大的字符。
getMinusSign()
表示减号的字符。
getNaN()
表示 NaN 的字符。
getPatternSeparator()
某模式中用于区分正数和负数子模式的字符。
getPercent()
用于百分比符号的字符。
getPerMill()
用于千分比符号的字符。
getZeroDigit()
表示零使用的字符。
hashCode()
覆盖 hashCode
setDecimalSeparator(char)
setDigit(char)
setGroupingSeparator(char)
setInfinity(String)
setMinusSign(char)
setNaN(String)
setPatternSeparator(char)
setPercent(char)
setPerMill(char)
setZeroDigit(char)

构造子

DecimalFormatSymbols
 public DecimalFormatSymbols()
用缺省的语言环境创建一个 DecimalFormatSymbols 对象。

DecimalFormatSymbols
 public DecimalFormatSymbols(Locale locale)
用给定的语言环境创建一个 DecimalFormatSymbols 对象。


方法

getZeroDigit
 public char getZeroDigit()
表示零使用的字符。 与 Arabic 不同。

setZeroDigit
 public void setZeroDigit(char zeroDigit)
getGroupingSeparator
 public char getGroupingSeparator()
用于千进制分隔符的字符。 与法文不同。

setGroupingSeparator
 public void setGroupingSeparator(char groupingSeparator)
getDecimalSeparator
 public char getDecimalSeparator()
用于十进制符号的字符。 与法文不同。

setDecimalSeparator
 public void setDecimalSeparator(char decimalSeparator)
getPerMill
 public char getPerMill()
用于千分比符号的字符。 与 Arabic 不同。

setPerMill
 public void setPerMill(char perMill)
getPercent
 public char getPercent()
用于百分比符号的字符。 与 Arabic 不同。

setPercent
 public void setPercent(char percent)
getDigit
 public char getDigit()
某模式下的数字使用的字符。

setDigit
 public void setDigit(char digit)
getPatternSeparator
 public char getPatternSeparator()
某模式中用于区分正数和负数子模式的字符。

setPatternSeparator
 public void setPatternSeparator(char patternSeparator)
getInfinity
 public String getInfinity()
表示无穷大的字符。 几乎总不改变。

setInfinity
 public void setInfinity(String infinity)
getNaN
 public String getNaN()
表示 NaN 的字符。 几乎总不改变。

setNaN
 public void setNaN(String NaN)
getMinusSign
 public char getMinusSign()
表示减号的字符。 如果没有指定明确的负数格式,在正数格式前面加前缀 minusSign 形成一个负数格式。

setMinusSign
 public void setMinusSign(char minusSign)
clone
 public Object clone()
标准覆盖。

覆盖:
Object 中的 clone
equals
 public boolean equals(Object obj)
覆盖 equals

覆盖:
Object 中的 equals
hashCode
 public int hashCode()
覆盖 hashCode

覆盖:
Object 中的 hashCode

当前位置 类层次 (JDK) 所有类 (JDK) 所有域和方法 (JDK)