Package java.text
Class DecimalFormat
java.lang.Object
java.text.Format
java.text.NumberFormat
java.text.DecimalFormat
- All Implemented Interfaces:
Serializable
,Cloneable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.text.NumberFormat
NumberFormat.Field
-
Field Summary
Fields inherited from class java.text.NumberFormat
FRACTION_FIELD, INTEGER_FIELD
-
Constructor Summary
ConstructorsConstructorDescriptionDecimalFormat
(String var0) DecimalFormat
(String var0, DecimalFormatSymbols var1) -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyLocalizedPattern
(String var0) void
applyPattern
(String var0) format
(double var0, StringBuffer var1, FieldPosition var2) format
(long var0, StringBuffer var1, FieldPosition var2) int
int
boolean
parse
(String var0, ParsePosition var1) void
void
setDecimalSeparatorAlwaysShown
(boolean var0) void
setGroupingSize
(int var0) void
setMultiplier
(int var0) void
setNegativePrefix
(String var0) void
setNegativeSuffix
(String var0) void
setPositivePrefix
(String var0) void
setPositiveSuffix
(String var0) Methods inherited from class java.text.NumberFormat
format, format, format, getAvailableLocales, getCurrency, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getMaximumFractionDigits, getMaximumIntegerDigits, getMinimumFractionDigits, getMinimumIntegerDigits, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setCurrency, setGroupingUsed, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setParseIntegerOnly
Methods inherited from class java.text.Format
clone, format, formatToCharacterIterator, parseObject
-
Constructor Details
-
DecimalFormat
public DecimalFormat() -
DecimalFormat
-
DecimalFormat
-
-
Method Details
-
applyLocalizedPattern
-
applyPattern
-
format
- Specified by:
format
in classNumberFormat
-
format
- Specified by:
format
in classNumberFormat
-
getDecimalFormatSymbols
-
getGroupingSize
public int getGroupingSize() -
getMultiplier
public int getMultiplier() -
getNegativePrefix
-
getNegativeSuffix
-
getPositivePrefix
-
getPositiveSuffix
-
isDecimalSeparatorAlwaysShown
public boolean isDecimalSeparatorAlwaysShown() -
parse
- Specified by:
parse
in classNumberFormat
-
setDecimalFormatSymbols
-
setDecimalSeparatorAlwaysShown
public void setDecimalSeparatorAlwaysShown(boolean var0) -
setGroupingSize
public void setGroupingSize(int var0) -
setMultiplier
public void setMultiplier(int var0) -
setNegativePrefix
-
setNegativeSuffix
-
setPositivePrefix
-
setPositiveSuffix
-
toLocalizedPattern
-
toPattern
-