public interface IsNumberFormat extends IsDefaultNumberFormatOptions
AbstractNumberFormat
Modifier and Type | Method and Description |
---|---|
void |
setCompactDisplay(CompactDisplay display)
Set the compact display when
Notation.COMPACT is set. |
void |
setCurrency(Currency currency)
Sets the currency to use in currency formatting.
|
void |
setCurrencyDisplay(CurrencyDisplay currencyDisplay)
Sets how to display the currency in currency formatting.
|
void |
setCurrencySign(CurrencySign currencySign)
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". |
void |
setLocaleMatcher(LocaleMatcher localeMatcher)
Sets the locale matching algorithm to use.
|
void |
setMaximumFractionDigits(int maximumFractionDigits)
Sets the maximum number of fraction digits to use.
Possible values are from 0 to 20. |
void |
setMaximumSignificantDigits(int minimumIntegerDigits)
Sets the maximum number of significant digits to use.
Possible values are from 1 to 21. |
void |
setMinimumFractionDigits(int minimumFractionDigits)
Sets the minimum number of fraction digits to use.
Possible values are from 0 to 20. |
void |
setMinimumIntegerDigits(int minimumIntegerDigits)
Sets the minimum number of integer digits to use.
Possible values are from 1 to 21. |
void |
setMinimumSignificantDigits(int minimumIntegerDigits)
Sets the minimum number of significant digits to use.
Possible values are from 1 to 21. |
void |
setNotation(Notation notation)
Sets the formatting that should be displayed for the number.
|
void |
setNumberingSystem(NumberingSystem numberingSystem)
Sets the numbering system to use.
|
void |
setSignDisplay(SignDisplay signDisplay)
Sets when to display the sign for the number.
|
void |
setStyle(Style style)
Sets the formatting style to use.
|
void |
setUnitOfMeasureDisplay(MeasureUnitDisplay unitDisplay)
Sets the unit formatting style to use in unit formatting.
|
void |
setUnitsOfMeasure(List<MeasureUnit> units)
Sets the unit to use in unit formatting.
If more that 1 unit has been passed, a compound unit has been created. |
void |
setUnitsOfMeasure(MeasureUnit... units)
Sets the unit to use in unit formatting.
If more that 1 unit has been passed, a compound unit has been created. |
void |
setUseGrouping(boolean useGrouping)
Sets
true whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators. |
create, create, getCompactDisplay, getCurrency, getCurrencyDisplay, getCurrencySign, getMaximumFractionDigits, getMaximumSignificantDigits, getMinimumFractionDigits, getMinimumIntegerDigits, getMinimumSignificantDigits, getNotation, getSignDisplay, getStyle, getUnitOfMeasureDisplay, getUnitsOfMeasure, isUseGrouping
getLocaleMatcher, getNumberingSystem
void setLocaleMatcher(LocaleMatcher localeMatcher)
localeMatcher
- the locale matching algorithm to usevoid setNumberingSystem(NumberingSystem numberingSystem)
numberingSystem
- the numbering system to usevoid setCompactDisplay(CompactDisplay display)
Notation.COMPACT
is set.display
- the compact display when Notation.COMPACT
is setvoid setCurrency(Currency currency)
currency
- the currency to use in currency formattingvoid setCurrencyDisplay(CurrencyDisplay currencyDisplay)
currencyDisplay
- how to display the currency in currency formattingvoid setCurrencySign(CurrencySign currencySign)
currencySign
- the currency format to use on formattingvoid setNotation(Notation notation)
notation
- the formatting that should be displayed for the numbervoid setSignDisplay(SignDisplay signDisplay)
signDisplay
- when to display the sign for the numbervoid setStyle(Style style)
style
- the formatting style to usevoid setUnitsOfMeasure(MeasureUnit... units)
units
- the units to use in units formattingvoid setUnitsOfMeasure(List<MeasureUnit> units)
units
- the units to use in units formattingvoid setUnitOfMeasureDisplay(MeasureUnitDisplay unitDisplay)
unitDisplay
- the unit formatting style to use in unit formattingvoid setUseGrouping(boolean useGrouping)
true
whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators.useGrouping
- true
whether to use grouping separators, such as thousands separators or thousand/lakh/crore separatorsvoid setMinimumIntegerDigits(int minimumIntegerDigits)
minimumIntegerDigits
- the minimum number of integer digits to usevoid setMinimumFractionDigits(int minimumFractionDigits)
minimumFractionDigits
- the minimum number of fraction digits to usevoid setMaximumFractionDigits(int maximumFractionDigits)
maximumFractionDigits
- the maximum number of fraction digits to usevoid setMinimumSignificantDigits(int minimumIntegerDigits)
minimumIntegerDigits
- the minimum number of significant digits to usevoid setMaximumSignificantDigits(int minimumIntegerDigits)
minimumIntegerDigits
- the maximum number of significant digits to use