java.lang
public static class: Character.Subset [javadoc |
source]
java.lang.Object
java.lang.Character$Subset
Direct Known Subclasses:
InputSubset, UnicodeBlock
Instances of this class represent particular subsets of the Unicode
character set. The only family of subsets defined in the
Character class is
UnicodeBlock . Other portions of the Java API may define other
subsets for their own purposes.
| Constructor: |
protected Subset(String name) {
if (name == null) {
throw new NullPointerException("name");
}
this.name = name;
}
Constructs a new Subset instance. Parameters:
name - The name of this subset
Throws:
NullPointerException - if name is null
- exception:
NullPointerException - if name is null
|
| Methods from java.lang.Object: |
|---|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from java.lang.Character$Subset Detail: |
public final boolean equals(Object obj) {
return (this == obj);
}
Compares two Subset objects for equality.
This method returns true if and only if
this and the argument refer to the same
object; since this method is final, this
guarantee holds for all subclasses. |
public final int hashCode() {
return super.hashCode();
}
Returns the standard hash code as defined by the
Object#hashCode method. This method
is final in order to ensure that the
equals and hashCode methods will
be consistent in all subclasses. |
public final String toString() {
return name;
}
Returns the name of this subset. |