Enum Class I18n

java.lang.Object
java.lang.Enum<I18n>
one.tranic.t.i18n.I18n
All Implemented Interfaces:
Serializable, Comparable<I18n>, Constable

public enum I18n extends Enum<I18n>
  • Enum Constant Details

    • SnakeYAML

      public static final I18n SnakeYAML
      Example Yaml:
      
       goldpiglin.test1: Goldpiglin test
       goldpiglin.boost: boost test
       goldpiglin
            boost:
                xyz: Goldpiglin xyzzz
       
    • GSON

      public static final I18n GSON
      Example Json:
      
       {
           "goldpiglin.test1": "Goldpiglin test",
           "goldpiglin.boost": "boost test",
           "goldpiglin.boost.xyz": "Goldpiglin xyzzz"
       }
       
    • PROPERTIES

      public static final I18n PROPERTIES
      Example Properties:
      
       goldpiglin.test1 = Goldpiglin test
       goldpiglin.boost = boost test
       goldpiglin.boost.xyz = Goldpiglin xyzzz
       
    • XML

      public static final I18n XML
      Example xml:
      
       <messages>
            <!-- Using ID attribute method -->
            <message id="goldpiglin.test1">Goldpiglin test</message>
      
            <!-- Using node hierarchy method -->
            <goldpiglin>
                <boost>boost test</boost>
                <boost>
                    <xyz>Goldpiglin xyzzz</xyz>
                </boost>
            </goldpiglin>
       </messages>
       
  • Method Details

    • values

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