Character.Subset
public static class Character.Subset
extends Object
Known Direct Subclasses
|
此类的实例表示Unicode字符集的特定子集。 Character类中定义的唯一子集系列是Character.UnicodeBlock 。 Java API的其他部分可以为其自己的目的定义其他子集。
摘要(Summary)
Protected constructors
Character.Subset
Character.Subset (String name)
构造一个新的 Subset实例。
| 参数(Parameters) |
name |
String: The name of this subset |
公共方法(Public methods)
equals
boolean equals (Object obj)
比较两个Subset对象是否相等。 当且仅当this和参数引用同一个对象时,此方法返回true ; 因为这个方法是final ,这个保证适用于所有的子类。
| 参数(Parameters) |
obj |
Object: the reference object with which to compare. |
| 返回(Returns) |
boolean |
true if this object is the same as the obj argument; false otherwise. |
hashCode
int hashCode ()
返回hashCode()方法定义的标准哈希码。 此方法为final ,以确保equals和hashCode方法在所有子类中保持一致。
| 返回(Returns) |
int |
a hash code value for this object. |
toString
String toString ()
返回此子集的名称。
| 返回(Returns) |
String |
a string representation of the object. |