public class FlexibleDecimalFormat extends java.text.DecimalFormat implements RevisionHandler
Constructor and Description |
---|
FlexibleDecimalFormat() |
FlexibleDecimalFormat(double d) |
FlexibleDecimalFormat(int digits) |
FlexibleDecimalFormat(int digits,
boolean trailing) |
FlexibleDecimalFormat(int digits,
boolean exp,
boolean trailing,
boolean grouping) |
Modifier and Type | Method and Description |
---|---|
java.lang.StringBuffer |
format(double number,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos) |
java.lang.StringBuffer |
formatString(java.lang.String str) |
java.lang.String |
getRevision()
Returns the revision string.
|
void |
grouping(boolean grouping) |
boolean |
needExponentialFormat(double d) |
void |
update(double d) |
int |
width() |
applyLocalizedPattern, applyPattern, clone, equals, format, 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, toPattern
format, format, getAvailableLocales, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setParseIntegerOnly
public FlexibleDecimalFormat()
public FlexibleDecimalFormat(int digits)
public FlexibleDecimalFormat(int digits, boolean trailing)
public FlexibleDecimalFormat(int digits, boolean exp, boolean trailing, boolean grouping)
public FlexibleDecimalFormat(double d)
public void update(double d)
public boolean needExponentialFormat(double d)
public void grouping(boolean grouping)
public java.lang.StringBuffer format(double number, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)
format
in class java.text.DecimalFormat
public int width()
public java.lang.StringBuffer formatString(java.lang.String str)
public java.lang.String getRevision()
getRevision
in interface RevisionHandler