Java.lang.Character.Subset Class


Advertisements

Introduction

The java.lang.Character.Subset class instances represent particular subsets of the Unicode character set. The only family of subsets defined in the Character class is UnicodeBlock.

Class Declaration

Following is the declaration for java.lang.Character.Subset class −

public static class Character.Subset
   extends Object

Class constructors

Sr.No. Constructor & Description
1

protected Character.Subset(String name)

This constructs a new Subset instance.

Class methods

Sr.No. Method & Description
1 boolean equals(Object obj)

This method compares two Subset objects for equality.

2 int hashCode()

This method returns the standard hash code as defined by the Object.hashCode() method.

3 String toString()

This method returns the name of this subset.

Methods inherited

This class inherits methods from the following classes −

  • java.lang.Object
Advertisements