public static class AttributedCharacterIterator.Attribute extends Object implements Serializable
AttributedCharacterIterator
和AttributedString
。
AttributedCharacterIterator
, AttributedString
, Serialized Form
Modifier and Type | Field and Description |
---|---|
static AttributedCharacterIterator.Attribute |
INPUT_METHOD_SEGMENT
输入方法段的属性键。
|
static AttributedCharacterIterator.Attribute |
LANGUAGE
一些文本的语言的属性键。
|
static AttributedCharacterIterator.Attribute |
READING
用于阅读某些文本的属性键。
|
Modifier | Constructor and Description |
---|---|
protected |
Attribute(String name)
构造一个具有给定名称的
Attribute 。
|
public static final AttributedCharacterIterator.Attribute LANGUAGE
值为Locale
的实例 。
Locale
public static final AttributedCharacterIterator.Attribute READING
Annotation
, String
public static final AttributedCharacterIterator.Attribute INPUT_METHOD_SEGMENT
Annotation
protected Attribute(String name)
Attribute
。
name
- 名称
Attribute
public final boolean equals(Object obj)
x
和y
引用相同的对象,则此版本仅对于x.equals(y)
返回true,并保证所有子类。
equals
在
Object
obj
- 用于比较的参考对象。
true
如果该对象与obj参数相同;
false
否则。
Object.hashCode()
, HashMap
public final int hashCode()
Object
,但也是最终版。
hashCode
在
Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
public String toString()
"("
,标识属性的名称和")"
。
protected String getName()
Attribute
protected Object readResolve() throws InvalidObjectException
Attribute
对象
InvalidObjectException
- 如果要解析的对象不是
Attribute
的实例
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, 2014, Oracle and/or its affiliates. All rights reserved.