java.lang
Class Character.Subset
java.lang.Objectjava.lang.Character.Subset
- Direct Known Subclasses:
- Character.UnicodeBlock, InputSubset
- Enclosing class:
- Character
public static class Character.Subset
- extends Object
Instances of this class represent particular subsets of the Unicode
character set. The only family of subsets defined in the
Character class is . Other portions of the Java API may define other
subsets for their own purposes.
UnicodeBlock
- Since:
- 1.2
| Constructor Summary | |
|---|---|
protected |
Character.Subset(String name)
Constructs a new Subset instance. |
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Compares two Subset objects for equality. |
int |
hashCode()
Returns the standard hash code as defined by the method. |
String |
toString()
Returns the name of this subset. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
Character.Subset
protected Character.Subset(String name)
- Constructs a new
Subsetinstance.- Parameters:
name- The name of this subset- Throws:
NullPointerException- if name isnull
| Method Detail |
|---|
equals
public final boolean equals(Object obj)
- Compares two
Subsetobjects for equality. This method returnstrueif and only ifthisand the argument refer to the same object; since this method isfinal, this guarantee holds for all subclasses.- Parameters:
obj- the reference object with which to compare.- Returns:
trueif this object is the same as the obj argument;falseotherwise.- See Also:
Object.hashCode(),Hashtable
hashCode
public final int hashCode()
- Returns the standard hash code as defined by the
method. This method isObject.hashCode()finalin order to ensure that theequalsandhashCodemethods will be consistent in all subclasses.- Returns:
- a hash code value for this object.
- See Also:
Object.equals(java.lang.Object),Hashtable
toString
public final String toString()
java.lang.Character.Subset