# Character.Subset

public static class **Character.Subset** extends [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)  

|---|---|---|
| Known Direct Subclasses [Character.UnicodeBlock](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Character.UnicodeBlock.html) |---|---| | [Character.UnicodeBlock](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Character.UnicodeBlock.html) | A family of character subsets representing the character blocks in the Unicode specification. | |||

Instances of this class represent particular subsets of the Unicode
character set. The only family of subsets defined in the
`Character` class is `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Character.UnicodeBlock.html`.
Other portions of the Java API may define other subsets for their
own purposes.

### Protected Constructor Summary

|---|---|
|   | [Subset](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Character.Subset.html#Subset(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name) Constructs a new `Subset` instance. |

### Public Method Summary

|---|---|
| final boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Character.Subset.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) obj) Compares two `Subset` objects for equality. |
| final int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Character.Subset.html#hashCode())() Returns the standard hash code as defined by the `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#hashCode()` method. |
| final [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Character.Subset.html#toString())() Returns the name of this subset. |

### Inherited Method Summary

From class [java.lang.Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)

|---|---|
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [clone](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#clone())() Creates and returns a copy of this `Object`. |
| boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) obj) Compares this instance with the specified object and indicates if they are equal. |
| void | [finalize](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#finalize())() Invoked when the garbage collector has detected that this instance is no longer reachable. |
| final [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<?\> | [getClass](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#getClass())() Returns the unique instance of `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html` that represents this object's class. |
| int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#hashCode())() Returns an integer hash code for this object. |
| final void | [notify](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notify())() Causes a thread which is waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| final void | [notifyAll](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notifyAll())() Causes all threads which are waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#toString())() Returns a string containing a concise, human-readable description of this object. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long,%20int))(long timeout, int nanos) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long))(long timeout) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait())() Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object. |

## Protected Constructors

#### protected
**Subset**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name)

Constructs a new `Subset` instance.

##### Parameters

| name | The name of this subset |
|---|---|

##### Throws

| [NullPointerException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/NullPointerException.html) | if name is `null` |
|---|---|

## Public Methods

#### public final boolean
**equals**
([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) 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.

##### Parameters

| obj | the object to compare this instance with. |
|---|---|

##### Returns

- `true` if the specified object is equal to this `Object`; `false` otherwise.

#### public final int
**hashCode**
()

Returns the standard hash code as defined by the
`https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#hashCode()` method. This method
is `final` in order to ensure that the
`equals` and `hashCode` methods will
be consistent in all subclasses.

##### Returns

- this object's hash code.

#### public final [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**toString**
()

Returns the name of this subset.

##### Returns

- a printable representation of this object.