Package com.iizix.translate.google
Enum Class Language
- All Implemented Interfaces:
Serializable
,Comparable<Language>
,Constable
List of languages and their language codes for the Google Translate 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
Albanian
Amharic
Arabic
Armenian
Azeerbaijani
Basque
Belarusian
Bengali
Bosnian
Bulgarian
Catalan
Cebuano
Chichewa
Chinese_Simplified
Chinese_Traditional
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Filipino
Finnish
French
Frisian
Galician
Georgian
German
Greek
Gujarati
Haitian_Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Khmer
Korean
Kurdish
Kyrgyz
Lao
Latin
Latvian
Lithuanian
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mongolian
Burmese
Nepali
Norwegian
Pashto
Persian
Polish
Portuguese
Punjabi
Romanian
Russian
Samoan
Scots_Gaelic
Serbian
Sesotho
Shona
Sindhi
Sinhala
Slovak
Slovenian
Somali
Spanish
Sundanese
Swahili
Swedish
Tajik
Tamil
Telugu
Thai
Turkish
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Xhosa
Yiddish
Yoruba
Zulu
Field Details
langID
Short abbreviation of the language name, typically two characters (unless for Chinese).description
The 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 Google language ID.- Returns:
- The Language.Nnn enum, or null if not found.
toString
Gets the language name.