public class Annotation extends Object
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.
|Constructor and Description|
Constructs an annotation record with the given value, which may be null.
|Modifier and Type||Method and Description|
Returns the value of the attribute, which may be null.
Returns the String representation of this Annotation.
public Annotation(Object value)
value- the value of the attribute
public Object getValue()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2021, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.