public class FlexibleDecimalFormat extends DecimalFormat implements RevisionHandler
NumberFormat.FieldFRACTION_FIELD, INTEGER_FIELD| 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 |
|---|---|
StringBuffer |
format(double number,
StringBuffer toAppendTo,
FieldPosition pos) |
StringBuffer |
formatString(String str) |
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, 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, setGroupingUsed, setParseIntegerOnlyformat, parseObjectpublic 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 StringBuffer format(double number, StringBuffer toAppendTo, FieldPosition pos)
format in class DecimalFormatpublic int width()
public StringBuffer formatString(String str)
public String getRevision()
getRevision in interface RevisionHandlerCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.