public final class DefaultNumberFormatOptions extends DefaultBaseFormatOptions implements IsDefaultNumberFormatOptions
Modifier and Type | Field and Description |
---|---|
static IsDefaultNumberFormatOptions |
INSTANCE
Immutable instance with the number format defaults.
|
Constructor and Description |
---|
DefaultNumberFormatOptions() |
Modifier and Type | Method and Description |
---|---|
CompactDisplay |
getCompactDisplay()
Returns the compact display when
Notation.COMPACT is set. |
Currency |
getCurrency()
Returns the currency to use in currency formatting.
|
CurrencyDisplay |
getCurrencyDisplay()
Returns how to display the currency in currency formatting.
|
CurrencySign |
getCurrencySign()
In many locales, accounting format means to wrap the number with parentheses instead of appending a minus sign.
You can enable this formatting by setting the currency sign option to "accounting" otherwise "standard". |
int |
getMaximumSignificantDigits()
Returns the maximum number of significant digits to use.
|
int |
getMinimumIntegerDigits()
Returns the minimum number of integer digits to use.
|
int |
getMinimumSignificantDigits()
Returns the minimum number of significant digits to use.
|
Notation |
getNotation()
Returns the formatting that should be displayed for the number.
|
SignDisplay |
getSignDisplay()
Returns when to display the sign for the number.
|
Style |
getStyle()
Returns the formatting style to use.
|
MeasureUnitDisplay |
getUnitOfMeasureDisplay()
Returns the unit formatting style to use in unit formatting.
|
List<MeasureUnit> |
getUnitsOfMeasure()
Returns an unmodifiable list of units to use in unit formatting.
|
boolean |
isUseGrouping()
Returns
true whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators. |
getLocaleMatcher, getNumberingSystem
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, create, getMaximumFractionDigits, getMinimumFractionDigits
getLocaleMatcher, getNumberingSystem
public static final IsDefaultNumberFormatOptions INSTANCE
public CompactDisplay getCompactDisplay()
IsDefaultNumberFormatOptions
Notation.COMPACT
is set.getCompactDisplay
in interface IsDefaultNumberFormatOptions
Notation.COMPACT
is setpublic Currency getCurrency()
IsDefaultNumberFormatOptions
getCurrency
in interface IsDefaultNumberFormatOptions
public CurrencyDisplay getCurrencyDisplay()
IsDefaultNumberFormatOptions
getCurrencyDisplay
in interface IsDefaultNumberFormatOptions
public CurrencySign getCurrencySign()
IsDefaultNumberFormatOptions
getCurrencySign
in interface IsDefaultNumberFormatOptions
public Notation getNotation()
IsDefaultNumberFormatOptions
getNotation
in interface IsDefaultNumberFormatOptions
public SignDisplay getSignDisplay()
IsDefaultNumberFormatOptions
getSignDisplay
in interface IsDefaultNumberFormatOptions
public Style getStyle()
IsDefaultNumberFormatOptions
getStyle
in interface IsDefaultNumberFormatOptions
public List<MeasureUnit> getUnitsOfMeasure()
IsDefaultNumberFormatOptions
getUnitsOfMeasure
in interface IsDefaultNumberFormatOptions
public MeasureUnitDisplay getUnitOfMeasureDisplay()
IsDefaultNumberFormatOptions
getUnitOfMeasureDisplay
in interface IsDefaultNumberFormatOptions
public boolean isUseGrouping()
IsDefaultNumberFormatOptions
true
whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators.isUseGrouping
in interface IsDefaultNumberFormatOptions
true
whether to use grouping separators, such as thousands separators or thousand/lakh/crore separatorspublic int getMinimumIntegerDigits()
IsDefaultNumberFormatOptions
getMinimumIntegerDigits
in interface IsDefaultNumberFormatOptions
public int getMinimumSignificantDigits()
IsDefaultNumberFormatOptions
getMinimumSignificantDigits
in interface IsDefaultNumberFormatOptions
public int getMaximumSignificantDigits()
IsDefaultNumberFormatOptions
getMaximumSignificantDigits
in interface IsDefaultNumberFormatOptions