|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.text.AttributedCharacterIterator.Attribute
public static class AttributedCharacterIterator.Attribute
Defines attribute keys that are used as text attributes.
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 |
AttributedCharacterIterator.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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
.
Constructor Detail |
---|
protected AttributedCharacterIterator.Attribute(String name)
name
- The name of this attribute key.Method Detail |
---|
protected String getName()
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 Object
obj
- 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 Object
Object.equals(Object)
,
System.identityHashCode(Object)
public String toString()
String
representation of this object.
toString
in class Object
String
representation of this object.Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |