public class FormattedValueStringBuilderImpl extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FormattedValueStringBuilderImpl.SpanFieldPlaceholder
Placeholder field used for calculating spans.
|
| Constructor and Description |
|---|
FormattedValueStringBuilderImpl() |
| Modifier and Type | Method and Description |
|---|---|
static void |
applySpanRange(FormattedStringBuilder self,
UFormat.SpanField spanField,
Object value,
int start,
int end)
Upgrade a range of a string to a span field.
|
static int |
findSpan(FormattedStringBuilder self,
Object value)
Finds the index at which a span field begins.
|
static boolean |
nextFieldPosition(FormattedStringBuilder self,
FieldPosition fp) |
static boolean |
nextPosition(FormattedStringBuilder self,
ConstrainedFieldPosition cfpos,
Format.Field numericField)
Implementation of nextPosition consistent with the contract of FormattedValue.
|
static AttributedCharacterIterator |
toCharacterIterator(FormattedStringBuilder self,
Format.Field numericField) |
public static int findSpan(FormattedStringBuilder self, Object value)
value - The value of the span field to search for.public static void applySpanRange(FormattedStringBuilder self, UFormat.SpanField spanField, Object value, int start, int end)
public static boolean nextFieldPosition(FormattedStringBuilder self, FieldPosition fp)
public static AttributedCharacterIterator toCharacterIterator(FormattedStringBuilder self, Format.Field numericField)
public static boolean nextPosition(FormattedStringBuilder self, ConstrainedFieldPosition cfpos, Format.Field numericField)
cfpos - The argument passed to the public API.numericField - Optional. If non-null, apply this field to the entire numeric portion of the string.