- All Implemented Interfaces:
- Serializable,- Comparable<Character.UnicodeScript>,- Constable
- Enclosing class:
- Character
public static enum Character.UnicodeScript extends Enum<Character.UnicodeScript>
A family of character subsets representing the character scripts
 defined in the 
 Unicode Standard Annex #24: Script Names. Every Unicode
 character is assigned to a single Unicode script, either a specific
 script, such as 
Latin, or
 one of the following three special values,
 Inherited,
 Common or
 Unknown.- Since:
- 1.7
- 
Nested Class Summary
- 
Enum Constant SummaryEnum Constants Enum Constant Description ADLAMUnicode script "Adlam".AHOMUnicode script "Ahom".ANATOLIAN_HIEROGLYPHSUnicode script "Anatolian Hieroglyphs".ARABICUnicode script "Arabic".ARMENIANUnicode script "Armenian".AVESTANUnicode script "Avestan".BALINESEUnicode script "Balinese".BAMUMUnicode script "Bamum".BASSA_VAHUnicode script "Bassa Vah".BATAKUnicode script "Batak".BENGALIUnicode script "Bengali".BHAIKSUKIUnicode script "Bhaiksuki".BOPOMOFOUnicode script "Bopomofo".BRAHMIUnicode script "Brahmi".BRAILLEUnicode script "Braille".BUGINESEUnicode script "Buginese".BUHIDUnicode script "Buhid".CANADIAN_ABORIGINALUnicode script "Canadian_Aboriginal".CARIANUnicode script "Carian".CAUCASIAN_ALBANIANUnicode script "Caucasian Albanian".CHAKMAUnicode script "Chakma".CHAMUnicode script "Cham".CHEROKEEUnicode script "Cherokee".COMMONUnicode script "Common".COPTICUnicode script "Coptic".CUNEIFORMUnicode script "Cuneiform".CYPRIOTUnicode script "Cypriot".CYRILLICUnicode script "Cyrillic".DESERETUnicode script "Deseret".DEVANAGARIUnicode script "Devanagari".DOGRAUnicode script "Dogra".DUPLOYANUnicode script "Duployan".EGYPTIAN_HIEROGLYPHSUnicode script "Egyptian_Hieroglyphs".ELBASANUnicode script "Elbasan".ELYMAICUnicode script "Elymaic".ETHIOPICUnicode script "Ethiopic".GEORGIANUnicode script "Georgian".GLAGOLITICUnicode script "Glagolitic".GOTHICUnicode script "Gothic".GRANTHAUnicode script "Grantha".GREEKUnicode script "Greek".GUJARATIUnicode script "Gujarati".GUNJALA_GONDIUnicode script "Gunjala Gondi".GURMUKHIUnicode script "Gurmukhi".HANUnicode script "Han".HANGULUnicode script "Hangul".HANIFI_ROHINGYAUnicode script "Hanifi Rohingya".HANUNOOUnicode script "Hanunoo".HATRANUnicode script "Hatran".HEBREWUnicode script "Hebrew".HIRAGANAUnicode script "Hiragana".IMPERIAL_ARAMAICUnicode script "Imperial_Aramaic".INHERITEDUnicode script "Inherited".INSCRIPTIONAL_PAHLAVIUnicode script "Inscriptional_Pahlavi".INSCRIPTIONAL_PARTHIANUnicode script "Inscriptional_Parthian".JAVANESEUnicode script "Javanese".KAITHIUnicode script "Kaithi".KANNADAUnicode script "Kannada".KATAKANAUnicode script "Katakana".KAYAH_LIUnicode script "Kayah_Li".KHAROSHTHIUnicode script "Kharoshthi".KHMERUnicode script "Khmer".KHOJKIUnicode script "Khojki".KHUDAWADIUnicode script "Khudawadi".LAOUnicode script "Lao".LATINUnicode script "Latin".LEPCHAUnicode script "Lepcha".LIMBUUnicode script "Limbu".LINEAR_AUnicode script "Linear A".LINEAR_BUnicode script "Linear_B".LISUUnicode script "Lisu".LYCIANUnicode script "Lycian".LYDIANUnicode script "Lydian".MAHAJANIUnicode script "Mahajani".MAKASARUnicode script "Makasar".MALAYALAMUnicode script "Malayalam".MANDAICUnicode script "Mandaic".MANICHAEANUnicode script "Manichaean".MARCHENUnicode script "Marchen".MASARAM_GONDIUnicode script "Masaram Gondi".MEDEFAIDRINUnicode script "Medefaidrin".MEETEI_MAYEKUnicode script "Meetei_Mayek".MENDE_KIKAKUIUnicode script "Mende Kikakui".MEROITIC_CURSIVEUnicode script "Meroitic Cursive".MEROITIC_HIEROGLYPHSUnicode script "Meroitic Hieroglyphs".MIAOUnicode script "Miao".MODIUnicode script "Modi".MONGOLIANUnicode script "Mongolian".MROUnicode script "Mro".MULTANIUnicode script "Multani".MYANMARUnicode script "Myanmar".NABATAEANUnicode script "Nabataean".NANDINAGARIUnicode script "Nandinagari".NEW_TAI_LUEUnicode script "New_Tai_Lue".NEWAUnicode script "Newa".NKOUnicode script "Nko".NUSHUUnicode script "Nushu".NYIAKENG_PUACHUE_HMONGUnicode script "Nyiakeng Puachue Hmong".OGHAMUnicode script "Ogham".OL_CHIKIUnicode script "Ol_Chiki".OLD_HUNGARIANUnicode script "Old Hungarian".OLD_ITALICUnicode script "Old_Italic".OLD_NORTH_ARABIANUnicode script "Old North Arabian".OLD_PERMICUnicode script "Old Permic".OLD_PERSIANUnicode script "Old_Persian".OLD_SOGDIANUnicode script "Old Sogdian".OLD_SOUTH_ARABIANUnicode script "Old_South_Arabian".OLD_TURKICUnicode script "Old_Turkic".ORIYAUnicode script "Oriya".OSAGEUnicode script "Osage".OSMANYAUnicode script "Osmanya".PAHAWH_HMONGUnicode script "Pahawh Hmong".PALMYRENEUnicode script "Palmyrene".PAU_CIN_HAUUnicode script "Pau Cin Hau".PHAGS_PAUnicode script "Phags_Pa".PHOENICIANUnicode script "Phoenician".PSALTER_PAHLAVIUnicode script "Psalter Pahlavi".REJANGUnicode script "Rejang".RUNICUnicode script "Runic".SAMARITANUnicode script "Samaritan".SAURASHTRAUnicode script "Saurashtra".SHARADAUnicode script "Sharada".SHAVIANUnicode script "Shavian".SIDDHAMUnicode script "Siddham".SIGNWRITINGUnicode script "SignWriting".SINHALAUnicode script "Sinhala".SOGDIANUnicode script "Sogdian".SORA_SOMPENGUnicode script "Sora Sompeng".SOYOMBOUnicode script "Soyombo".SUNDANESEUnicode script "Sundanese".SYLOTI_NAGRIUnicode script "Syloti_Nagri".SYRIACUnicode script "Syriac".TAGALOGUnicode script "Tagalog".TAGBANWAUnicode script "Tagbanwa".TAI_LEUnicode script "Tai_Le".TAI_THAMUnicode script "Tai_Tham".TAI_VIETUnicode script "Tai_Viet".TAKRIUnicode script "Takri".TAMILUnicode script "Tamil".TANGUTUnicode script "Tangut".TELUGUUnicode script "Telugu".THAANAUnicode script "Thaana".THAIUnicode script "Thai".TIBETANUnicode script "Tibetan".TIFINAGHUnicode script "Tifinagh".TIRHUTAUnicode script "Tirhuta".UGARITICUnicode script "Ugaritic".UNKNOWNUnicode script "Unknown".VAIUnicode script "Vai".WANCHOUnicode script "Wancho".WARANG_CITIUnicode script "Warang Citi".YIUnicode script "Yi".ZANABAZAR_SQUAREUnicode script "Zanabazar Square".
- 
Method SummaryModifier and Type Method Description static Character.UnicodeScriptforName(String scriptName)Returns the UnicodeScript constant with the given Unicode script name or the script name alias.static Character.UnicodeScriptof(int codePoint)Returns the enum constant representing the Unicode script of which the given character (Unicode code point) is assigned to.static Character.UnicodeScriptvalueOf(String name)Returns the enum constant of this type with the specified name.static Character.UnicodeScript[]values()Returns an array containing the constants of this enum type, in the order they are declared.
- 
Enum Constant Details- 
COMMONUnicode script "Common".
- 
LATINUnicode script "Latin".
- 
GREEKUnicode script "Greek".
- 
CYRILLICUnicode script "Cyrillic".
- 
ARMENIANUnicode script "Armenian".
- 
HEBREWUnicode script "Hebrew".
- 
ARABICUnicode script "Arabic".
- 
SYRIACUnicode script "Syriac".
- 
THAANAUnicode script "Thaana".
- 
DEVANAGARIUnicode script "Devanagari".
- 
BENGALIUnicode script "Bengali".
- 
GURMUKHIUnicode script "Gurmukhi".
- 
GUJARATIUnicode script "Gujarati".
- 
ORIYAUnicode script "Oriya".
- 
TAMILUnicode script "Tamil".
- 
TELUGUUnicode script "Telugu".
- 
KANNADAUnicode script "Kannada".
- 
MALAYALAMUnicode script "Malayalam".
- 
SINHALAUnicode script "Sinhala".
- 
THAIUnicode script "Thai".
- 
LAOUnicode script "Lao".
- 
TIBETANUnicode script "Tibetan".
- 
MYANMARUnicode script "Myanmar".
- 
GEORGIANUnicode script "Georgian".
- 
HANGULUnicode script "Hangul".
- 
ETHIOPICUnicode script "Ethiopic".
- 
CHEROKEEUnicode script "Cherokee".
- 
CANADIAN_ABORIGINALUnicode script "Canadian_Aboriginal".
- 
OGHAMUnicode script "Ogham".
- 
RUNICUnicode script "Runic".
- 
KHMERUnicode script "Khmer".
- 
MONGOLIANUnicode script "Mongolian".
- 
HIRAGANAUnicode script "Hiragana".
- 
KATAKANAUnicode script "Katakana".
- 
BOPOMOFOUnicode script "Bopomofo".
- 
HANUnicode script "Han".
- 
YIUnicode script "Yi".
- 
OLD_ITALICUnicode script "Old_Italic".
- 
GOTHICUnicode script "Gothic".
- 
DESERETUnicode script "Deseret".
- 
INHERITEDUnicode script "Inherited".
- 
TAGALOGUnicode script "Tagalog".
- 
HANUNOOUnicode script "Hanunoo".
- 
BUHIDUnicode script "Buhid".
- 
TAGBANWAUnicode script "Tagbanwa".
- 
LIMBUUnicode script "Limbu".
- 
TAI_LEUnicode script "Tai_Le".
- 
LINEAR_BUnicode script "Linear_B".
- 
UGARITICUnicode script "Ugaritic".
- 
SHAVIANUnicode script "Shavian".
- 
OSMANYAUnicode script "Osmanya".
- 
CYPRIOTUnicode script "Cypriot".
- 
BRAILLEUnicode script "Braille".
- 
BUGINESEUnicode script "Buginese".
- 
COPTICUnicode script "Coptic".
- 
NEW_TAI_LUEUnicode script "New_Tai_Lue".
- 
GLAGOLITICUnicode script "Glagolitic".
- 
TIFINAGHUnicode script "Tifinagh".
- 
SYLOTI_NAGRIUnicode script "Syloti_Nagri".
- 
OLD_PERSIANUnicode script "Old_Persian".
- 
KHAROSHTHIUnicode script "Kharoshthi".
- 
BALINESEUnicode script "Balinese".
- 
CUNEIFORMUnicode script "Cuneiform".
- 
PHOENICIANUnicode script "Phoenician".
- 
PHAGS_PAUnicode script "Phags_Pa".
- 
NKOUnicode script "Nko".
- 
SUNDANESEUnicode script "Sundanese".
- 
BATAKUnicode script "Batak".
- 
LEPCHAUnicode script "Lepcha".
- 
OL_CHIKIUnicode script "Ol_Chiki".
- 
VAIUnicode script "Vai".
- 
SAURASHTRAUnicode script "Saurashtra".
- 
KAYAH_LIUnicode script "Kayah_Li".
- 
REJANGUnicode script "Rejang".
- 
LYCIANUnicode script "Lycian".
- 
CARIANUnicode script "Carian".
- 
LYDIANUnicode script "Lydian".
- 
CHAMUnicode script "Cham".
- 
TAI_THAMUnicode script "Tai_Tham".
- 
TAI_VIETUnicode script "Tai_Viet".
- 
AVESTANUnicode script "Avestan".
- 
EGYPTIAN_HIEROGLYPHSUnicode script "Egyptian_Hieroglyphs".
- 
SAMARITANUnicode script "Samaritan".
- 
MANDAICUnicode script "Mandaic".
- 
LISUUnicode script "Lisu".
- 
BAMUMUnicode script "Bamum".
- 
JAVANESEUnicode script "Javanese".
- 
MEETEI_MAYEKUnicode script "Meetei_Mayek".
- 
IMPERIAL_ARAMAICUnicode script "Imperial_Aramaic".
- 
OLD_SOUTH_ARABIANUnicode script "Old_South_Arabian".
- 
INSCRIPTIONAL_PARTHIANUnicode script "Inscriptional_Parthian".
- 
INSCRIPTIONAL_PAHLAVIUnicode script "Inscriptional_Pahlavi".
- 
OLD_TURKICUnicode script "Old_Turkic".
- 
BRAHMIUnicode script "Brahmi".
- 
KAITHIUnicode script "Kaithi".
- 
MEROITIC_HIEROGLYPHSUnicode script "Meroitic Hieroglyphs".- Since:
- 1.8
 
- 
MEROITIC_CURSIVEUnicode script "Meroitic Cursive".- Since:
- 1.8
 
- 
SORA_SOMPENGUnicode script "Sora Sompeng".- Since:
- 1.8
 
- 
CHAKMAUnicode script "Chakma".- Since:
- 1.8
 
- 
SHARADAUnicode script "Sharada".- Since:
- 1.8
 
- 
TAKRIUnicode script "Takri".- Since:
- 1.8
 
- 
MIAOUnicode script "Miao".- Since:
- 1.8
 
- 
CAUCASIAN_ALBANIANUnicode script "Caucasian Albanian".- Since:
- 9
 
- 
BASSA_VAHUnicode script "Bassa Vah".- Since:
- 9
 
- 
DUPLOYANUnicode script "Duployan".- Since:
- 9
 
- 
ELBASANUnicode script "Elbasan".- Since:
- 9
 
- 
GRANTHAUnicode script "Grantha".- Since:
- 9
 
- 
PAHAWH_HMONGUnicode script "Pahawh Hmong".- Since:
- 9
 
- 
KHOJKIUnicode script "Khojki".- Since:
- 9
 
- 
LINEAR_AUnicode script "Linear A".- Since:
- 9
 
- 
MAHAJANIUnicode script "Mahajani".- Since:
- 9
 
- 
MANICHAEANUnicode script "Manichaean".- Since:
- 9
 
- 
MENDE_KIKAKUIUnicode script "Mende Kikakui".- Since:
- 9
 
- 
MODIUnicode script "Modi".- Since:
- 9
 
- 
MROUnicode script "Mro".- Since:
- 9
 
- 
OLD_NORTH_ARABIANUnicode script "Old North Arabian".- Since:
- 9
 
- 
NABATAEANUnicode script "Nabataean".- Since:
- 9
 
- 
PALMYRENEUnicode script "Palmyrene".- Since:
- 9
 
- 
PAU_CIN_HAUUnicode script "Pau Cin Hau".- Since:
- 9
 
- 
OLD_PERMICUnicode script "Old Permic".- Since:
- 9
 
- 
PSALTER_PAHLAVIUnicode script "Psalter Pahlavi".- Since:
- 9
 
- 
SIDDHAMUnicode script "Siddham".- Since:
- 9
 
- 
KHUDAWADIUnicode script "Khudawadi".- Since:
- 9
 
- 
TIRHUTAUnicode script "Tirhuta".- Since:
- 9
 
- 
WARANG_CITIUnicode script "Warang Citi".- Since:
- 9
 
- 
AHOMUnicode script "Ahom".- Since:
- 9
 
- 
ANATOLIAN_HIEROGLYPHSUnicode script "Anatolian Hieroglyphs".- Since:
- 9
 
- 
HATRANUnicode script "Hatran".- Since:
- 9
 
- 
MULTANIUnicode script "Multani".- Since:
- 9
 
- 
OLD_HUNGARIANUnicode script "Old Hungarian".- Since:
- 9
 
- 
SIGNWRITINGUnicode script "SignWriting".- Since:
- 9
 
- 
ADLAMUnicode script "Adlam".- Since:
- 11
 
- 
BHAIKSUKIUnicode script "Bhaiksuki".- Since:
- 11
 
- 
MARCHENUnicode script "Marchen".- Since:
- 11
 
- 
NEWAUnicode script "Newa".- Since:
- 11
 
- 
OSAGEUnicode script "Osage".- Since:
- 11
 
- 
TANGUTUnicode script "Tangut".- Since:
- 11
 
- 
MASARAM_GONDIUnicode script "Masaram Gondi".- Since:
- 11
 
- 
NUSHUUnicode script "Nushu".- Since:
- 11
 
- 
SOYOMBOUnicode script "Soyombo".- Since:
- 11
 
- 
ZANABAZAR_SQUAREUnicode script "Zanabazar Square".- Since:
- 11
 
- 
HANIFI_ROHINGYAUnicode script "Hanifi Rohingya".- Since:
- 12
 
- 
OLD_SOGDIANUnicode script "Old Sogdian".- Since:
- 12
 
- 
SOGDIANUnicode script "Sogdian".- Since:
- 12
 
- 
DOGRAUnicode script "Dogra".- Since:
- 12
 
- 
GUNJALA_GONDIUnicode script "Gunjala Gondi".- Since:
- 12
 
- 
MAKASARUnicode script "Makasar".- Since:
- 12
 
- 
MEDEFAIDRINUnicode script "Medefaidrin".- Since:
- 12
 
- 
ELYMAICUnicode script "Elymaic".- Since:
- 13
 
- 
NANDINAGARIUnicode script "Nandinagari".- Since:
- 13
 
- 
NYIAKENG_PUACHUE_HMONGUnicode script "Nyiakeng Puachue Hmong".- Since:
- 13
 
- 
WANCHOUnicode script "Wancho".- Since:
- 13
 
- 
UNKNOWNUnicode script "Unknown".
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
ofReturns the enum constant representing the Unicode script of which the given character (Unicode code point) is assigned to.- Parameters:
- codePoint- the character (Unicode code point) in question.
- Returns:
- The UnicodeScriptconstant representing the Unicode script of which this character is assigned to.
- Throws:
- IllegalArgumentException- if the specified- codePointis an invalid Unicode code point.
- See Also:
- Character.isValidCodePoint(int)
 
- 
forNameReturns the UnicodeScript constant with the given Unicode script name or the script name alias. Script names and their aliases are determined by The Unicode Standard. The filesScripts<version>.txtandPropertyValueAliases<version>.txtdefine script names and the script name aliases for a particular version of the standard. TheCharacterclass specifies the version of the standard that it supports.Character case is ignored for all of the valid script names. The en_US locale's case mapping rules are used to provide case-insensitive string comparisons for script name validation. - Parameters:
- scriptName- A- UnicodeScriptname.
- Returns:
- The UnicodeScriptconstant identified byscriptName
- Throws:
- IllegalArgumentException- if- scriptNameis an invalid name
- NullPointerException- if- scriptNameis null
 
 
-