public class FlexibleDecimalFormat extends DecimalFormat implements RevisionHandler
NumberFormat.Field
FRACTION_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, 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
format, parseObject
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 StringBuffer format(double number, StringBuffer toAppendTo, FieldPosition pos)
format
in class DecimalFormat
public int width()
public StringBuffer formatString(String str)
public String getRevision()
getRevision
in interface RevisionHandler
Copyright © 2019 University of Waikato, Hamilton, NZ. All rights reserved.