public static class Character.Subset extends Object
protected Subset(String name)
Subset实例。
name - 此子集的名称
NullPointerException - 如果名字是
null
public final boolean equals(Object obj)
Subset对象的相等性。
当且仅当this和参数引用相同的对象时,此方法返回true ;
由于此方法为final ,因此该保证适用于所有子类。
equals在类别
Object
obj - 用于比较的参考对象。
true如果此对象与obj参数相同;
false否则。
Object.hashCode() , HashMap
public final int hashCode()
Object.hashCode()方法定义的标准哈希码。
这种方法是final ,以确保equals和hashCode方法在所有子类中都是一致的。
hashCode在类别
Object
Object.equals(java.lang.Object) ,
System.identityHashCode(java.lang.Object)
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.