java.lang
Class Character.Subset

java.lang.Object
  extended by java.lang.Character.Subset
Direct Known Subclasses:
Character.UnicodeBlock, InputSubset
Enclosing class:
Character

public static class Character.Subset
extends Object

A subset of Unicode blocks.

Since:
1.2

Constructor Summary
protected Character.Subset(String name)
          Construct a new subset of characters.
 
Method Summary
 boolean equals(Object o)
          Compares two Subsets for equality.
 int hashCode()
          Makes the original hashCode of Object final, to be consistent with equals.
 String toString()
          Returns the name of the 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)
Construct a new subset of characters.

Parameters:
name - the name of the subset
Throws:
NullPointerException - if name is null
Method Detail

equals

public final boolean equals(Object o)
Compares two Subsets for equality. This is final, and restricts the comparison on the == operator, so it returns true only for the same object.

Overrides:
equals in class Object
Parameters:
o - the object to compare
Returns:
true if o is this
See Also:
Object.hashCode()

hashCode

public final int hashCode()
Makes the original hashCode of Object final, to be consistent with equals.

Overrides:
hashCode in class Object
Returns:
the hash code for this object
See Also:
Object.equals(Object), System.identityHashCode(Object)

toString

public final String toString()
Returns the name of the subset.

Overrides:
toString in class Object
Returns:
the name
See Also:
Object.getClass(), Object.hashCode(), Class.getName(), Integer.toHexString(int)