Java.lang.Character.UnicodeBlock Class


Introduction

The java.lang.Character.UnicodeBlock class is a family of character subsets representing the character blocks in the Unicode specification. Character blocks generally define characters used for a specific script or purpose.

Class Declaration

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

public static final class Character.UnicodeBlock
   extends Character.Subset

Field

Following are the fields for java.lang.Character.UnicodeBlock class −

Class methods

Sr.No. Method & Description
1 static Character.UnicodeBlock forName(String blockName)

This method returns the UnicodeBlock with the given name.

2 static Character.UnicodeBlock of(char c)

This method returns the object representing the Unicode block containing the given character, or null if the character is not a member of a defined block.

3 static Character.UnicodeBlock of(int codePoint)

This method returns the object representing the Unicode block containing the given character (Unicode code point), or null if the character is not a member of a defined block.

Methods inherited

This class inherits methods from the following classes −