Interface Language

All Superinterfaces:
Comparable<Language>, Serializable

public interface Language extends Serializable, Comparable<Language>
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 Type
    Method
    Description
    Returns the name of this language in its own language, e.g English for English Deutsch for German Français for French
    Returns the name of this language in the specified language, e.g given that language was German, this method would return: Englisch for English Deutsch for German Französisch for French
    Returns 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.g
      • English for English
      • Deutsch for German
      • Français for French
      Returns:
      the language name in its own language
    • getDescription

      String getDescription(Language language)
      Returns the name of this language in the specified language, e.g given that language was German, this method would return:
      • Englisch for English
      • Deutsch for German
      • Französisch for 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