public static class AttributedCharacterIterator.Attribute extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static AttributedCharacterIterator.Attribute |
INPUT_METHOD_SEGMENT
This is the attribute for input method segments.
|
static AttributedCharacterIterator.Attribute |
LANGUAGE
This is the attribute for the language of the text.
|
static AttributedCharacterIterator.Attribute |
READING
This is the attribute for the reading form of text.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AttributedCharacterIterator.Attribute(String name)
Initializes a new instance of this class with the specified name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Tests this object for equality against the specified object.
|
protected String |
getName()
Returns the name of this attribute.
|
int |
hashCode()
Returns a hash value for this object.
|
protected Object |
readResolve()
Resolves an instance of
AttributedCharacterIterator.Attribute
that is being deserialized to one of the three pre-defined attribute
constants. |
String |
toString()
Returns a
String representation of this object. |
public static final AttributedCharacterIterator.Attribute LANGUAGE
Locale.public static final AttributedCharacterIterator.Attribute READING
Annotation which wrappers a
String.public static final AttributedCharacterIterator.Attribute INPUT_METHOD_SEGMENT
Annotation which wrapper
a String.protected AttributedCharacterIterator.Attribute(String name)
name - The name of this attribute key.protected Object readResolve() throws InvalidObjectException
AttributedCharacterIterator.Attribute
that is being deserialized to one of the three pre-defined attribute
constants. It does this by comparing the names of the attributes. The
constant that the deserialized object resolves to is returned.InvalidObjectException - If the object being deserialized
cannot be resolved.public final boolean equals(Object obj)
null.
AttributedCharacterIterator.Attribute.
equals in class Objectobj - the Object to test for equality against this
object.true if the specified object is equal to this one,
false otherwise.Object.hashCode()public final int hashCode()
hashCode in class ObjectObject.equals(Object),
System.identityHashCode(Object)public String toString()
String representation of this object.toString in class ObjectString representation of this object.Object.getClass(),
Object.hashCode(),
Class.getName(),
Integer.toHexString(int)