Interface Language
- All Superinterfaces:
Comparable<Language>,Serializable
A
Language consists of a language identifier, e.g. de to identify the German language, and
of the language description in the various supported languages. There is also a connection to the associate
Locale.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the name of this language in its own language, e.gEnglishfor EnglishDeutschfor GermanFrançaisfor FrenchgetDescription(Language language) Returns the name of this language in the specified language, e.g given thatlanguagewasGerman, this method would return:Englischfor EnglishDeutschfor GermanFranzösischfor FrenchReturns the language's identifier, which corresponds to the locales name for this language.Returns the locale that is associated with the language.Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getLocale
Locale getLocale()Returns the locale that is associated with the language.- Returns:
- the locale
-
getDescription
String getDescription()Returns the name of this language in its own language, e.gEnglishfor EnglishDeutschfor GermanFrançaisfor French
- Returns:
- the language name in its own language
-
getDescription
Returns the name of this language in the specified language, e.g given thatlanguagewasGerman, this method would return:Englischfor EnglishDeutschfor GermanFranzösischfor French
- Parameters:
language- the language version of this language- Returns:
- the language name in the specified language
-
getIdentifier
String getIdentifier()Returns the language's identifier, which corresponds to the locales name for this language.- Returns:
- the language identifier
-