java.lang
Class Character.Subset

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.lang.Character.Subset
Direct Known Subclasses:
Character.UnicodeBlock sample code for java.lang.Character.UnicodeBlock definition code for java.lang.Character.UnicodeBlock , InputSubset sample code for java.awt.im.InputSubset definition code for java.awt.im.InputSubset
Enclosing class:
Character sample code for java.lang.Character definition code for java.lang.Character

public static class Character.Subset
extends Object sample code for java.lang.Object definition code for java.lang.Object

Instances of this class represent particular subsets of the Unicode character set. The only family of subsets defined in the Character class is UnicodeBlock sample code for java.lang.Character.UnicodeBlock definition code for java.lang.Character.UnicodeBlock . Other portions of the Java API may define other subsets for their own purposes.

Since:
1.2

Constructor Summary
protected Character.Subset sample code for java.lang.Character.Subset.Character.Subset(java.lang.String) definition code for java.lang.Character.Subset.Character.Subset(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  name)
          Constructs a new Subset instance.
 
Method Summary
 boolean equals sample code for java.lang.Character.Subset.equals(java.lang.Object) definition code for java.lang.Character.Subset.equals(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  obj)
          Compares two Subset objects for equality.
 int hashCode sample code for java.lang.Character.Subset.hashCode() definition code for java.lang.Character.Subset.hashCode() ()
          Returns the standard hash code as defined by the Object.hashCode() sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() method.
 String sample code for java.lang.String definition code for java.lang.String toString sample code for java.lang.Character.Subset.toString() definition code for java.lang.Character.Subset.toString() ()
          Returns the name of this subset.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

Character.Subset sample code for java.lang.Character.Subset(java.lang.String) definition code for java.lang.Character.Subset(java.lang.String)

protected Character.Subset(String sample code for java.lang.String definition code for java.lang.String  name)
Constructs a new Subset instance.

Parameters:
name - The name of this subset
Throws:
NullPointerException sample code for java.lang.NullPointerException definition code for java.lang.NullPointerException - if name is null
Method Detail

equals sample code for java.lang.Character.Subset.equals(java.lang.Object) definition code for java.lang.Character.Subset.equals(java.lang.Object)

public final boolean equals(Object sample code for java.lang.Object definition code for java.lang.Object  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.

Overrides:
equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) in class Object sample code for java.lang.Object definition code for java.lang.Object
Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.
See Also:
Object.hashCode() sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable

hashCode sample code for java.lang.Character.Subset.hashCode() definition code for java.lang.Character.Subset.hashCode()

public final int hashCode()
Returns the standard hash code as defined by the Object.hashCode() sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() method. This method is final in order to ensure that the equals and hashCode methods will be consistent in all subclasses.

Overrides:
hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a hash code value for this object.
See Also:
Object.equals(java.lang.Object) sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable

toString sample code for java.lang.Character.Subset.toString() definition code for java.lang.Character.Subset.toString()

public final String sample code for java.lang.String definition code for java.lang.String  toString()
Returns the name of this subset.

Overrides:
toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a string representation of the object.