Most visited

Recently visited

Added in API level 1

Character.Subset

public static class Character.Subset
extends Object

java.lang.Object
    java.lang.Character.Subset
Known Direct Subclasses


此类的实例表示Unicode字符集的特定子集。 Character类中定义的唯一子集系列是Character.UnicodeBlock Java API的其他部分可以为其自己的目的定义其他子集。

摘要(Summary)

Protected constructors

Character.Subset(String name)

构造一个新的 Subset实例。

公共方法(Public methods)

final boolean equals(Object obj)

比较两个 Subset对象是否相等。

final int hashCode()

返回 hashCode()方法定义的标准哈希码。

final String toString()

返回此子集的名称。

继承方法(Inherited methods)

From class java.lang.Object

Protected constructors

Character.Subset

Added in API level 1
Character.Subset (String name)

构造一个新的 Subset实例。

参数(Parameters)
name String: The name of this subset
抛出异常(Throws)
NullPointerException if name is null

公共方法(Public methods)

equals

Added in API level 1
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

Added in API level 1
int hashCode ()

返回hashCode()方法定义的标准哈希码。 此方法为final ,以确保equalshashCode方法在所有子类中保持一致。

返回(Returns)
int a hash code value for this object.

toString

Added in API level 1
String toString ()

返回此子集的名称。

返回(Returns)
String a string representation of the object.

Hooray!