NumberRangeFormatter
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final NumberRangeFormatter. | |
| pack-priv final DecimalQuantity | quantity1
Deprecated
as a consequence of
DecimalQuantity being deprecated.
|
| pack-priv final DecimalQuantity | quantity2
Deprecated
as a consequence of
DecimalQuantity being deprecated.
|
| pack-priv final FormattedStringBuilder |
| Access | Constructor and Description |
|---|---|
| pack-priv | FormattedNumberRange(FormattedStringBuilder string, DecimalQuantity quantity1, DecimalQuantity quantity2, NumberRangeFormatter.
Deprecated
as a consequence of
DecimalQuantity being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| public <A extends Appendable> A | appendTo(A
The Appendable to which to append the string output. appendable)Implements com. |
| public char | charAt(int
the index of the index)char value to be returnedImplements java. char value at the specified index.
|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public BigDecimal | Returns: A BigDecimal representation of the first formatted number.Export the first formatted number as a BigDecimal. |
| public PluralRules. | |
| public NumberRangeFormatter. | Returns: A RangeIdentityType indicating the resulting identity situation in the formatted number range.Returns whether the pair of numbers was successfully formatted as a range or whether an identity fallback was used. |
| public BigDecimal | Returns: A BigDecimal representation of the second formatted number.Export the second formatted number as a BigDecimal. |
| public PluralRules. | |
| public int | |
| public int | |
| public boolean | nextPosition(ConstrainedFieldPosition
The object used for iteration state. This can provide constraints to iterate over
only one specific field; see cfpos)ConstrainedFieldPosition#constrainField.Implements com. |
| public CharSequence | subSequence(int
the start index, inclusive start, int the end index, exclusive end)Implements java. CharSequence that is a subsequence of this sequence.
|
| public AttributedCharacterIterator | toCharacterIterator()
Implements com. |
| public String | toString()
Overrides java. Implements com. |
| identityResult | back to summary |
|---|---|
| pack-priv final NumberRangeFormatter. | |
| quantity1 | back to summary |
|---|---|
| pack-priv final DecimalQuantity quantity1
Deprecated as a consequence of | |
| quantity2 | back to summary |
|---|---|
| pack-priv final DecimalQuantity quantity2
Deprecated as a consequence of | |
| string | back to summary |
|---|---|
| pack-priv final FormattedStringBuilder string | |
| FormattedNumberRange | back to summary |
|---|---|
| pack-priv FormattedNumberRange(FormattedStringBuilder string, DecimalQuantity quantity1, DecimalQuantity quantity2, NumberRangeFormatter. Deprecated as a consequence of | |
| appendTo | back to summary |
|---|---|
| public <A extends Appendable> A appendTo(A appendable) Implements com. Doc from com. Appends the formatted string to an Appendable.
If an IOException occurs when appending to the Appendable, an unchecked
| |
| charAt | back to summary |
|---|---|
| public char charAt(int index) Implements java. Doc from java. Returns the If the | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getFirstBigDecimal | back to summary |
|---|---|
| public BigDecimal getFirstBigDecimal() Export the first formatted number as a BigDecimal. This endpoint is useful for obtaining the exact number being printed after scaling and rounding have been applied by the number range formatting pipeline.
| |
| getFirstFixedDecimal | back to summary |
|---|---|
| public PluralRules. Deprecated This API is ICU internal only.
| |
| getIdentityResult | back to summary |
|---|---|
| public NumberRangeFormatter. Returns whether the pair of numbers was successfully formatted as a range or whether an identity fallback was used. For example, if the first and second number were the same either before or after rounding occurred, an identity fallback was used.
| |
| getSecondBigDecimal | back to summary |
|---|---|
| public BigDecimal getSecondBigDecimal() Export the second formatted number as a BigDecimal. This endpoint is useful for obtaining the exact number being printed after scaling and rounding have been applied by the number range formatting pipeline.
| |
| getSecondFixedDecimal | back to summary |
|---|---|
| public PluralRules. Deprecated This API is ICU internal only.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| length | back to summary |
|---|---|
| public int length() Implements java. Doc from java. Returns the length of this character sequence. The length is the number
of 16-bit | |
| nextPosition | back to summary |
|---|---|
| public boolean nextPosition(ConstrainedFieldPosition cfpos) Implements com. Doc from com. Iterates over field positions in the FormattedValue. This lets you determine the position of specific types of substrings, like a month or a decimal separator. To loop over all field positions:
ConstrainedFieldPosition cfpos = new ConstrainedFieldPosition();
while (fmtval.nextPosition(cfpos)) {
// handle the field position; get information from cfpos
}
| |
| subSequence | back to summary |
|---|---|
| public CharSequence subSequence(int start, int end) Implements java. Doc from java. Returns a
| |
| toCharacterIterator | back to summary |
|---|---|
| public AttributedCharacterIterator toCharacterIterator() Implements com. Doc from com. Exports the formatted number as an AttributedCharacterIterator.
Consider using
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements com. Doc from com. Returns the formatted string as a Java String.
Consider using | |