DecimalFormat Members

DecimalFormat Members

Class Overview | This Package | All Packages

Constructors
Name Description
DecimalFormat() Create a DecimalFormat using the default pattern and symbols for the default locale.
DecimalFormat(String) Create a DecimalFormat from the given pattern and the symbols for the default locale.
DecimalFormat(String, DecimalFormatSymbols) Create a DecimalFormat from the given pattern and symbols.

Methods
Name Description
applyLocalizedPattern(String) Apply the given pattern to this Format object.
applyPattern(String) Apply the given pattern to this Format object.
clone() Standard override; no change in semantics.
equals(Object) Overrides equals
format(double, StringBuffer, FieldPosition) Specialization of format.
format(long, StringBuffer, FieldPosition) Specialization of format.
getDecimalFormatSymbols() Returns the decimal format symbols, which is generally not changed by the programmer or user.
getGroupingSize() Return the grouping size.
getMultiplier() Get the multiplier for use in percent, permill, etc.
getNegativePrefix() Get the negative prefix.
getNegativeSuffix() Get the negative suffix.
getPositivePrefix() Get the positive prefix.
getPositiveSuffix() Get the positive suffix.
hashCode() Overrides hashCode
isDecimalSeparatorAlwaysShown() Allows you to get the behavior of the decimal separator with integers.
parse(String, ParsePosition) Returns a Long if possible (e.g.
setDecimalFormatSymbols(DecimalFormatSymbols) Sets the decimal format symbols, which is generally not changed by the programmer or user.
setDecimalSeparatorAlwaysShown(boolean) Allows you to set the behavior of the decimal separator with integers.
setGroupingSize(int) Set the grouping size.
setMultiplier(int) Set the multiplier for use in percent, permill, etc.
setNegativePrefix(String) Set the negative prefix.
setNegativeSuffix(String) Set the positive suffix.
setPositivePrefix(String) Set the positive prefix.
setPositiveSuffix(String) Set the positive suffix.
toLocalizedPattern() Synthesizes a localized pattern string that represents the current state of this Format object.
toPattern() Synthesizes a pattern string that represents the current state of this Format object.