Package com.iizix.translate.microsoft
Enum Class Language
- All Implemented Interfaces:
Serializable
,Comparable<Language>
,Constable
List of languages and their language codes for the Azure Cognitive Services API.
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant Summary
Enum ConstantDescriptionField Summary
Method Summary
Modifier and TypeMethodDescriptionstatic Language
Creates a Language enum from a language ID.toString()
Gets the language name.static 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
Auto_detect
Afrikaans
Arabic
Bosnian_Latin
Bulgarian
Catalan
Chinese_Simplified
Chinese_Traditional
Croatian
Czech
Danish
Dutch
English
Estonian
Finnish
French
German
Greek
Haitian_Creole
Hebrew
Hindi
Hmong_Daw
Hungarian
Indonesian
Italian
Japanese
Kiswahili
Klingon
Klingon_pIqaD
Korean
Latvian
Lithuanian
Malay
Maltese
Norwegian
Persian
Polish
Portuguese
Queretaro_Otomi
Romanian
Russian
Serbian_Cyrillic
Serbian_Latin
Slovak
Slovenian
Spanish
Swedish
Thai
Turkish
Ukrainian
Urdu
Vietnamese
Welsh
Yucatec_Maya
Field Details
langID
Short abbreviation of the language name, typically two characters (unless for Chinese).description
Description.
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
get
Creates a Language enum from a language ID.- Parameters:
langID
- The language ID.- Returns:
- The Language.Nnn enum, or null if not found.
toString
Gets the language name.