| Modifier and Type | Method and Description |
|---|---|
| public <A extends Appendable> A | Returns: The same Appendable, for chaining.The Appendable to which to append the string output. appendable)Appends the formatted string to an Appendable. |
| public boolean | Returns: true if a new occurrence of the field was found; false otherwise.The object used for iteration state. This can provide constraints to iterate over
only one specific field; see cfpos)ConstrainedFieldPosition#constrainField.Iterates over field positions in the FormattedValue. |
| public AttributedCharacterIterator | Returns: An AttributedCharacterIterator containing full field information.Exports the formatted number as an AttributedCharacterIterator. |
| public String | Returns: The formatted string.Redeclares java. |
| appendTo | back to summary |
|---|---|
| public <A extends Appendable> A appendTo(A appendable) Appends the formatted string to an Appendable.
If an IOException occurs when appending to the Appendable, an unchecked
| |
| nextPosition | back to summary |
|---|---|
| public boolean nextPosition(ConstrainedFieldPosition cfpos) 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
}
| |
| toCharacterIterator | back to summary |
|---|---|
| public AttributedCharacterIterator toCharacterIterator() Exports the formatted number as an AttributedCharacterIterator.
Consider using
| |
| toString | back to summary |
|---|---|
| public String toString() Redeclares java. Returns the formatted string as a Java String.
Consider using | |