public class PaddingDecimalFormat extends DecimalFormat
NumberFormat.FieldFRACTION_FIELD, INTEGER_FIELD| Constructor and Description |
|---|
PaddingDecimalFormat(String pattern,
DecimalFormatSymbols symbols,
int minLength)
Creates a PaddingDecimalFormat using the given pattern, symbols and minimum minimumLength.
|
PaddingDecimalFormat(String pattern,
int minLength)
Creates a PaddingDecimalFormat using the given pattern and minimum minimumLength and the symbols for the default
locale.
|
| Modifier and Type | Method and Description |
|---|---|
StringBuffer |
format(double number,
StringBuffer toAppendTo,
FieldPosition pos) |
StringBuffer |
format(long number,
StringBuffer toAppendTo,
FieldPosition pos) |
applyLocalizedPattern, applyPattern, clone, equals, format, formatToCharacterIterator, getCurrency, getDecimalFormatSymbols, getGroupingSize, getMaximumFractionDigits, getMaximumIntegerDigits, getMinimumFractionDigits, getMinimumIntegerDigits, getMultiplier, getNegativePrefix, getNegativeSuffix, getPositivePrefix, getPositiveSuffix, getRoundingMode, hashCode, isDecimalSeparatorAlwaysShown, isParseBigDecimal, parse, setCurrency, setDecimalFormatSymbols, setDecimalSeparatorAlwaysShown, setGroupingSize, setGroupingUsed, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setMultiplier, setNegativePrefix, setNegativeSuffix, setParseBigDecimal, setPositivePrefix, setPositiveSuffix, setRoundingMode, toLocalizedPattern, toPatternformat, format, getAvailableLocales, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setParseIntegerOnlyformat, parseObjectpublic PaddingDecimalFormat(String pattern, int minLength)
public PaddingDecimalFormat(String pattern, DecimalFormatSymbols symbols, int minLength)
public StringBuffer format(double number, StringBuffer toAppendTo, FieldPosition pos)
format in class DecimalFormatpublic StringBuffer format(long number, StringBuffer toAppendTo, FieldPosition pos)
format in class DecimalFormatCopyright © 2017–2021 Apache Software Foundation. All rights reserved.