@Deprecated public class PlainStringFormattedValue extends java.lang.Object implements FormattedValue
| Constructor and Description |
|---|
PlainStringFormattedValue(java.lang.String value)
Deprecated.
This API is for unit testing only.
|
| Modifier and Type | Method and Description |
|---|---|
<A extends java.lang.Appendable> |
appendTo(A appendable)
Deprecated.
This API is for unit testing only.
|
char |
charAt(int index)
Deprecated.
This API is for unit testing only.
|
int |
length()
Deprecated.
This API is for unit testing only.
|
boolean |
nextPosition(ConstrainedFieldPosition cfpos)
Deprecated.
This API is for unit testing only.
|
java.lang.CharSequence |
subSequence(int start,
int end)
Deprecated.
This API is for unit testing only.
|
java.text.AttributedCharacterIterator |
toCharacterIterator()
Deprecated.
This API is for unit testing only.
|
java.lang.String |
toString()
Deprecated.
This API is for unit testing only.
|
@Deprecated public PlainStringFormattedValue(java.lang.String value)
value - the string value to store@Deprecated public int length()
length in interface java.lang.CharSequence@Deprecated public char charAt(int index)
charAt in interface java.lang.CharSequence@Deprecated
public java.lang.CharSequence subSequence(int start,
int end)
subSequence in interface java.lang.CharSequence@Deprecated public <A extends java.lang.Appendable> A appendTo(A appendable)
If an IOException occurs when appending to the Appendable, an unchecked
ICUUncheckedIOException is thrown instead.
appendTo in interface FormattedValueappendable - The Appendable to which to append the string output.@Deprecated public boolean nextPosition(ConstrainedFieldPosition cfpos)
ConstrainedFieldPosition cfpos = new ConstrainedFieldPosition();
while (fmtval.nextPosition(cfpos)) {
// handle the field position; get information from cfpos
}
nextPosition in interface FormattedValuecfpos - The object used for iteration state. This can provide constraints to iterate over
only one specific field; see ConstrainedFieldPosition.constrainField(java.text.Format.Field).@Deprecated public java.text.AttributedCharacterIterator toCharacterIterator()
Consider using FormattedValue.nextPosition(com.ibm.icu.text.ConstrainedFieldPosition) if you are trying to get field information.
toCharacterIterator in interface FormattedValue@Deprecated public java.lang.String toString()
FormattedValue.appendTo(A) for greater efficiency.toString in interface FormattedValuetoString in interface java.lang.CharSequencetoString in class java.lang.ObjectCopyright ? 2016 Unicode, Inc. and others.