public static class AttributedCharacterIterator.Attribute extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static AttributedCharacterIterator.Attribute |
INPUT_METHOD_SEGMENT
This attribute marks segments from an input method.
|
static AttributedCharacterIterator.Attribute |
LANGUAGE
The attribute describing the language of a character.
|
static AttributedCharacterIterator.Attribute |
READING
For languages that have different reading directions of text (like
Japanese), this attribute allows to define which reading should be
used.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Attribute(String name)
The constructor for an
Attribute with the name passed. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object)
Compares this attribute with the specified object.
|
protected String |
getName()
Returns the name of this attribute.
|
int |
hashCode()
Calculates the hash code for objects of type
Attribute. |
protected Object |
readResolve()
Resolves a deserialized instance to the correct constant attribute.
|
String |
toString()
Returns the name of the class followed by a "(", the name of the
attribute, and a ")".
|
public static final AttributedCharacterIterator.Attribute INPUT_METHOD_SEGMENT
Annotation which contain
null.public static final AttributedCharacterIterator.Attribute LANGUAGE
Locale or a subtype of it.public static final AttributedCharacterIterator.Attribute READING
Annotation which
contain a String.protected Attribute(String name)
Attribute with the name passed.name - the name of the new Attribute.public final boolean equals(Object object)
equals in class Objectobject - the object to compare against.true if the object passed is equal to this instance;
false otherwise.Object.hashCode()protected String getName()
public final int hashCode()
Attribute. It
is defined final so all sub types calculate their hash code
identically.hashCode in class ObjectAttribute.Object.equals(java.lang.Object)protected Object readResolve() throws InvalidObjectException
Attribute this instance represents.InvalidObjectException - if this instance is not of type Attribute.class
or if it is not a known Attribute.