NumberFormatter
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final AtomicLongFieldUpdater | |
| pack-priv volatile long | |
| pack-priv volatile NumberFormatterImpl | |
| pack-priv volatile LocalizedNumberFormatter |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| pack-priv LocalizedNumberFormatter | |
| public FormattedNumber | Returns: A FormattedNumber object; call .toString() to get the string.The number to format. input)Format the given byte, short, int, or long to a string using the settings specified in the NumberFormatter fluent setting chain. |
| public FormattedNumber | Returns: A FormattedNumber object; call .toString() to get the string.The number to format. input)Format the given float or double to a string using the settings specified in the NumberFormatter fluent setting chain. |
| public FormattedNumber | Returns: A FormattedNumber object; call .toString() to get the string.The number to format. input)Format the given |
| public FormattedNumber | Returns: A FormattedNumber object; call .toString() to get the string.The number to format. input)Format the given |
| private FormattedNumber | format(DecimalQuantity fq)
Deprecated
as a consequence of
Helper method that creates a FormattedStringBuilder and formats.
DecimalQuantity being deprecated.
|
| public MicroProps | formatImpl(DecimalQuantity
The quantity to be formatted. fq, FormattedStringBuilder The string builder into which to insert the result. string)
Deprecated
ICU 60 This API is ICU internal only.
This is the core entrypoint to the number formatting pipeline.
|
| public MicroProps | formatImpl(DecimalQuantity fq, MeasureUnit unit, FormattedStringBuilder string)
Deprecated
ICU 67 This API is ICU internal only.
Version of above for unit override.
|
| public String | |
| public Format | Returns: A Format wrapping this LocalizedNumberFormatter.Creates a representation of this LocalizedNumberFormat as a |
| callCount | back to summary |
|---|---|
| pack-priv static final AtomicLongFieldUpdater<LocalizedNumberFormatter> callCount | |
| callCountInternal | back to summary |
|---|---|
| pack-priv volatile long callCountInternal | |
| compiled | back to summary |
|---|---|
| pack-priv volatile NumberFormatterImpl compiled | |
| savedWithUnit | back to summary |
|---|---|
| pack-priv volatile LocalizedNumberFormatter savedWithUnit | |
| LocalizedNumberFormatter | back to summary |
|---|---|
| pack-priv LocalizedNumberFormatter(NumberFormatterSettings<?> parent, int key, Object value) | |
| computeCompiled | back to summary |
|---|---|
| private boolean computeCompiled() | |
| create | back to summary |
|---|---|
| pack-priv LocalizedNumberFormatter create(int key, Object value) Implements abstract com.
| |
| format | back to summary |
|---|---|
| public FormattedNumber format(long input) Format the given byte, short, int, or long to a string using the settings specified in the NumberFormatter fluent setting chain.
| |
| format | back to summary |
|---|---|
| public FormattedNumber format(double input) Format the given float or double to a string using the settings specified in the NumberFormatter fluent setting chain.
| |
| format | back to summary |
|---|---|
| public FormattedNumber format(Number input) Format the given
| |
| format | back to summary |
|---|---|
| public FormattedNumber format(Measure input) Format the given The unit specified here overrides any unit that may have been specified in the setter chain. This method is intended for cases when each input to the number formatter has a different unit.
| |
| format | back to summary |
|---|---|
| private FormattedNumber format(DecimalQuantity fq)
Deprecated as a consequence of Helper method that creates a FormattedStringBuilder and formats. | |
| formatImpl | back to summary |
|---|---|
| public MicroProps formatImpl(DecimalQuantity fq, FormattedStringBuilder string)
Deprecated ICU 60 This API is ICU internal only. This is the core entrypoint to the number formatting pipeline. It performs self-regulation: a static code path for the first few calls, and compiling a more efficient data structure if called repeatedly. This function is very hot, being called in every call to the number formatting pipeline.
| |
| formatImpl | back to summary |
|---|---|
| public MicroProps formatImpl(DecimalQuantity fq, MeasureUnit unit, FormattedStringBuilder string)
Deprecated ICU 67 This API is ICU internal only. Version of above for unit override.
| |
| getAffixImpl | back to summary |
|---|---|
| public String getAffixImpl(boolean isPrefix, boolean isNegative)
Deprecated This API is ICU internal only. Use
| |
| toFormat | back to summary |
|---|---|
| public Format toFormat() Creates a representation of this LocalizedNumberFormat as a
This API is not intended to be used other than for enabling API compatibility. The
| |