Enum Class Language

java.lang.Object
java.lang.Enum<Language>
org.sgrewritten.stargate.formatting.Language
All Implemented Interfaces:
Serializable, Comparable<Language>, Constable

public enum Language extends Enum<Language>
A representation of all potentially available languages Used to resolve potential ambiguity.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The default dialect of Afrikaans is from South Africa.
    The default dialect of Arabic is from Saudi Arabia.
    The default dialect of Catalan is from Spain.
    The default dialect of Czech is from the Czech Republic.
    The default dialect of Danish is from Denmark.
    The default dialect of German is from Germany.
    The default dialect of Greek is from Greece.
    Canadian English
    British English
    Pirate English (esoteric)
    Upside-down English (esoteric)
    American English
    Spaniard Spanish
    The default dialect of Finnish is from Finland.
    The default dialect of French is from France.
    The default dialect of Hebrew is from Israel.
    The default dialect of Hungarian is from Hungary.
    The default dialect of Italian is from Italy.
    The default dialect of Japanese is from Japan.
    The default dialect of Korean is from South Korea.
    The default dialect of Lolcat is from the United States.
    The default dialect of Bokmål is from Norway.
    The default dialect of Dutch is from the Netherlands.
    Norwegian Nynorsk.
    The default dialect of Polish is from Poland.
    Brazilian Portuguese.
    Portugal Portuguese.
    The default dialect of Romanian is from Romania.
    The default dialect of Russian is from Russia.
    The default dialect of Serbian is from Serbia and Montenegro.
    Sweden Swedish.
    The default dialect of Turkish is from Turkey.
    The default dialect of Ukrainian is from Ukraine
    The default dialect of Vietnamese is from Vietnam.
    China Chinese
    Taiwanese Chinese
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the language of this language code
    Gets the language code of this language
    Gets the relative language folder containing this language's files
    boolean
    matches(String language)
    Gets whether a given language specification matches this language
    static Language
    Returns the enum constant of this class with the specified name.
    static Language[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • AF_ZA

      public static final Language AF_ZA
      The default dialect of Afrikaans is from South Africa.
    • AR_SA

      public static final Language AR_SA
      The default dialect of Arabic is from Saudi Arabia.
    • CA_ES

      public static final Language CA_ES
      The default dialect of Catalan is from Spain.
    • CS_CZ

      public static final Language CS_CZ
      The default dialect of Czech is from the Czech Republic.
    • DA_DK

      public static final Language DA_DK
      The default dialect of Danish is from Denmark.
    • DE_DE

      public static final Language DE_DE
      The default dialect of German is from Germany.
    • EL_GR

      public static final Language EL_GR
      The default dialect of Greek is from Greece.
    • EN_CA

      public static final Language EN_CA
      Canadian English
    • EN_GB

      public static final Language EN_GB
      British English
    • EN_PT

      public static final Language EN_PT
      Pirate English (esoteric)
    • EN_UD

      public static final Language EN_UD
      Upside-down English (esoteric)
    • EN_US

      public static final Language EN_US
      American English
    • ES_ES

      public static final Language ES_ES
      Spaniard Spanish
    • FI_FI

      public static final Language FI_FI
      The default dialect of Finnish is from Finland.
    • FR_FR

      public static final Language FR_FR
      The default dialect of French is from France.
    • HE_IL

      public static final Language HE_IL
      The default dialect of Hebrew is from Israel.
    • HU_HU

      public static final Language HU_HU
      The default dialect of Hungarian is from Hungary.
    • IT_IT

      public static final Language IT_IT
      The default dialect of Italian is from Italy.
    • JA_JP

      public static final Language JA_JP
      The default dialect of Japanese is from Japan.
    • KO_KR

      public static final Language KO_KR
      The default dialect of Korean is from South Korea.
    • LOL_US

      public static final Language LOL_US
      The default dialect of Lolcat is from the United States. (esoteric)
    • NB_NO

      public static final Language NB_NO
      The default dialect of Bokmål is from Norway.
    • NL_NL

      public static final Language NL_NL
      The default dialect of Dutch is from the Netherlands.
    • NN_NO

      public static final Language NN_NO
      Norwegian Nynorsk.
    • PL_PL

      public static final Language PL_PL
      The default dialect of Polish is from Poland.
    • PT_BR

      public static final Language PT_BR
      Brazilian Portuguese.
    • PT_PT

      public static final Language PT_PT
      Portugal Portuguese.
    • RO_RO

      public static final Language RO_RO
      The default dialect of Romanian is from Romania.
    • RU_RU

      public static final Language RU_RU
      The default dialect of Russian is from Russia.
    • SR_SP

      public static final Language SR_SP
      The default dialect of Serbian is from Serbia and Montenegro.
    • SV_SE

      public static final Language SV_SE
      Sweden Swedish.
    • TR_TR

      public static final Language TR_TR
      The default dialect of Turkish is from Turkey.
    • UK_UA

      public static final Language UK_UA
      The default dialect of Ukrainian is from Ukraine
    • VI_VN

      public static final Language VI_VN
      The default dialect of Vietnamese is from Vietnam.
    • ZH_CN

      public static final Language ZH_CN
      China Chinese
    • ZH_TW

      public static final Language ZH_TW
      Taiwanese Chinese
  • 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
    • matches

      public boolean matches(String language)
      Gets whether a given language specification matches this language
      Parameters:
      language -

      The language specified by a user

      Returns:

      True if the specified language matches this language

    • getLanguage

      public String getLanguage()
      Gets the language of this language code
      Returns:

      The language of this language code

    • getLanguageCode

      public String getLanguageCode()
      Gets the language code of this language
      Returns:

      The language code of this language

    • getLanguageFolder

      public String getLanguageFolder()
      Gets the relative language folder containing this language's files
      Returns:

      The relative language folder