Enum Class Language

java.lang.Object
java.lang.Enum<Language>
nl.mtvehicles.core.infrastructure.enums.Language
All Implemented Interfaces:
Serializable, Comparable<Language>, Constable

public enum Language extends Enum<Language>
Languages which are offered by the plugin
  • Enum Constant Details

    • EN

      public static final Language EN
      English
    • NL

      public static final Language NL
      Dutch
    • ES

      public static final Language ES
      Spanish
    • CS

      public static final Language CS
      Czech
    • DE

      public static final Language DE
      German
    • CN

      public static final Language CN
      Chinese
    • TR

      public static final Language TR
      Turkish
    • JA

      public static final Language JA
      Japanese
    • HE

      public static final Language HE
      Hebrew
    • RU

      public static final Language RU
      Russian
    • FR

      public static final Language FR
      French
    • TH

      public static final Language TH
      Thai
    • GR

      public static final Language GR
      Greek
    • CUSTOM

      public static final Language CUSTOM
      Custom language one can create and use
  • Method Details

    • values

      public static Language[] 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

      public static Language valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getLanguageName

      public String getLanguageName()
      Get the language name
      Returns:
      Language name (in its own language)
    • getLanguageCode

      public String getLanguageCode()
      Get the language code
      Returns:
      Language code (e.g. "en")
    • getAllLanguages

      public static String[] getAllLanguages()
      Get an array of all languages (in their country codes)
      Returns:
      Array of all supported languages
    • isSupported

      public static boolean isSupported(String languageCode)
      Check whether the language is supported
      Parameters:
      languageCode - Language code (e.g. "en")
      Returns:
      Whether the language is supported