Enum Class Language
- All Implemented Interfaces:
Serializable
,Comparable<Language>
,Constable
A representation of all potentially available languages
Used to resolve potential ambiguity.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe default dialect of Afrikaans is from South Africa.The default dialect of Arabic is from Saudi Arabia.The default dialect of Catalan is from Spain.The default dialect of Czech is from the Czech Republic.The default dialect of Danish is from Denmark.The default dialect of German is from Germany.The default dialect of Greek is from Greece.Canadian EnglishBritish EnglishPirate English (esoteric)Upside-down English (esoteric)American EnglishSpaniard SpanishThe default dialect of Finnish is from Finland.The default dialect of French is from France.The default dialect of Hebrew is from Israel.The default dialect of Hungarian is from Hungary.The default dialect of Italian is from Italy.The default dialect of Japanese is from Japan.The default dialect of Korean is from South Korea.The default dialect of Lolcat is from the United States.The default dialect of Bokmål is from Norway.The default dialect of Dutch is from the Netherlands.Norwegian Nynorsk.The default dialect of Polish is from Poland.Brazilian Portuguese.Portugal Portuguese.The default dialect of Romanian is from Romania.The default dialect of Russian is from Russia.The default dialect of Serbian is from Serbia and Montenegro.Sweden Swedish.The default dialect of Turkish is from Turkey.The default dialect of Ukrainian is from UkraineThe default dialect of Vietnamese is from Vietnam.China ChineseTaiwanese Chinese -
Method Summary
Modifier and TypeMethodDescriptionGets the language of this language codeGets the language code of this languageGets the relative language folder containing this language's filesboolean
Gets whether a given language specification matches this languagestatic Language
Returns the enum constant of this class with the specified name.static Language[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AF_ZA
The default dialect of Afrikaans is from South Africa. -
AR_SA
The default dialect of Arabic is from Saudi Arabia. -
CA_ES
The default dialect of Catalan is from Spain. -
CS_CZ
The default dialect of Czech is from the Czech Republic. -
DA_DK
The default dialect of Danish is from Denmark. -
DE_DE
The default dialect of German is from Germany. -
EL_GR
The default dialect of Greek is from Greece. -
EN_CA
Canadian English -
EN_GB
British English -
EN_PT
Pirate English (esoteric) -
EN_UD
Upside-down English (esoteric) -
EN_US
American English -
ES_ES
Spaniard Spanish -
FI_FI
The default dialect of Finnish is from Finland. -
FR_FR
The default dialect of French is from France. -
HE_IL
The default dialect of Hebrew is from Israel. -
HU_HU
The default dialect of Hungarian is from Hungary. -
IT_IT
The default dialect of Italian is from Italy. -
JA_JP
The default dialect of Japanese is from Japan. -
KO_KR
The default dialect of Korean is from South Korea. -
LOL_US
The default dialect of Lolcat is from the United States. (esoteric) -
NB_NO
The default dialect of Bokmål is from Norway. -
NL_NL
The default dialect of Dutch is from the Netherlands. -
NN_NO
Norwegian Nynorsk. -
PL_PL
The default dialect of Polish is from Poland. -
PT_BR
Brazilian Portuguese. -
PT_PT
Portugal Portuguese. -
RO_RO
The default dialect of Romanian is from Romania. -
RU_RU
The default dialect of Russian is from Russia. -
SR_SP
The default dialect of Serbian is from Serbia and Montenegro. -
SV_SE
Sweden Swedish. -
TR_TR
The default dialect of Turkish is from Turkey. -
UK_UA
The default dialect of Ukrainian is from Ukraine -
VI_VN
The default dialect of Vietnamese is from Vietnam. -
ZH_CN
China Chinese -
ZH_TW
Taiwanese Chinese
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
matches
Gets whether a given language specification matches this language- Parameters:
language
-The language specified by a user
- Returns:
True if the specified language matches this language
-
getLanguage
Gets the language of this language code- Returns:
The language of this language code
-
getLanguageCode
Gets the language code of this language- Returns:
The language code of this language
-
getLanguageFolder
Gets the relative language folder containing this language's files- Returns:
The relative language folder
-