java.lang

Class Character.Subset

public static class Character.Subset extends Object

A subset of Unicode blocks.

Since: 1.2

Constructor Summary
protected Subset(String name)
Construct a new subset of characters.
Method Summary
booleanequals(Object o)
Compares two Subsets for equality.
inthashCode()
Makes the original hashCode of Object final, to be consistent with equals.
StringtoString()
Returns the name of the subset.

Constructor Detail

Subset

protected 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.

Parameters: o the object to compare

Returns: true if o is this

hashCode

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

Returns: the hash code for this object

toString

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

Returns: the name