java.text
public static class AttributedCharacterIterator.Attribute extends Object implements Serializable
Field Summary | |
---|---|
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. |
Constructor Summary | |
---|---|
protected | Attribute(String name)
Initializes a new instance of this class with the specified name.
|
Method Summary | |
---|---|
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.
|
Annotation
which wrapper
a String
.Locale
.Annotation
which wrappers a
String
.Parameters: name The name of this attribute key.
null
.
AttributedCharacterIterator.Attribute
.
Parameters: obj the Object
to test for equality against this
object.
Returns: true
if the specified object is equal to this one,
false
otherwise.
Returns: The attribute name
Returns: A hash value for this object.
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.
Returns: The resolved contant value
Throws: InvalidObjectException If the object being deserialized cannot be resolved.
String
representation of this object.
Returns: A String
representation of this object.