Wrapping the attribute value into an Annotation object guarantees that adjacent text runs don't get merged even if the attribute values are equal, and indicates to text containers that the attribute should be discarded if the underlying text is modified.
AttributedCharacterIterator
| Access | Constructor and Description |
|---|---|
| public | Annotation(Object
the value of the attribute value)Constructs an annotation record with the given value, which may be null. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public String | Returns: theString representation of this AnnotationOverrides java. Returns the String representation of this Annotation. |
| value | back to summary |
|---|---|
| private Object value | |
| Annotation | back to summary |
|---|---|
| public Annotation(Object value) Constructs an annotation record with the given value, which may be null.
| |
| getValue | back to summary |
|---|---|
| public Object getValue() Returns the value of the attribute, which may be null.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns the String representation of this Annotation.
| |