public interface IsDefaultNumberFormatOptions extends IsDefaultBaseFormatOptions
Modifier and Type | Method and Description |
---|---|
default NumberFormatItem |
create()
Creates a number format options instance using default or cloning current instance.
|
default NumberFormatItem |
create(IsDefaultNumberFormatOptions defaultValues)
Creates a number format options instance using default or cloning current instance.
|
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". |
default int |
getMaximumFractionDigits()
Returns the maximum number of fraction digits to use.
The default for plain number formatting is the larger of NumberFormatOptions.getMinimumFractionDigits() and 3.The default for currency formatting is the larger of NumberFormatOptions.getMinimumFractionDigits() and the number of minor unit digits provided by currency, see
Currency.getMinimumFractionDigits() .The default for percent formatting is the larger of NumberFormatOptions.getMinimumFractionDigits() and 0. |
int |
getMaximumSignificantDigits()
Returns the maximum number of significant digits to use.
|
default int |
getMinimumFractionDigits()
Returns the minimum number of fraction digits to use.
The default for plain number and percent formatting is 0; the default for currency formatting is the number of minor unit digits provided by the currency, see Currency.getMinimumFractionDigits() . |
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
CompactDisplay getCompactDisplay()
Notation.COMPACT
is set.Notation.COMPACT
is setCurrency getCurrency()
CurrencyDisplay getCurrencyDisplay()
CurrencySign getCurrencySign()
Notation getNotation()
SignDisplay getSignDisplay()
Style getStyle()
List<MeasureUnit> getUnitsOfMeasure()
MeasureUnitDisplay getUnitOfMeasureDisplay()
boolean isUseGrouping()
true
whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators.true
whether to use grouping separators, such as thousands separators or thousand/lakh/crore separatorsint getMinimumIntegerDigits()
default int getMinimumFractionDigits()
Currency.getMinimumFractionDigits()
.Currency.getMinimumFractionDigits()
default int getMaximumFractionDigits()
NumberFormatOptions.getMinimumFractionDigits()
and 3.NumberFormatOptions.getMinimumFractionDigits()
and the number of minor unit digits provided by currency, see
Currency.getMinimumFractionDigits()
.NumberFormatOptions.getMinimumFractionDigits()
and 0.NumberFormatOptions.getMinimumFractionDigits()
and 3.NumberFormatOptions.getMinimumFractionDigits()
and the number of minor unit digits provided by currency,
see Currency.getMinimumFractionDigits()
.NumberFormatOptions.getMinimumFractionDigits()
and 0.int getMinimumSignificantDigits()
int getMaximumSignificantDigits()
default NumberFormatItem create()
default NumberFormatItem create(IsDefaultNumberFormatOptions defaultValues)
defaultValues
- default provider