Enum Class I18nTp

java.lang.Object
java.lang.Enum<I18nTp>
cn.sinozg.applet.tool.enums.I18nTp
All Implemented Interfaces:
Serializable, Comparable<I18nTp>, Constable

public enum I18nTp extends Enum<I18nTp>
Since:
2024-11-07 23:15
Author:
xyb
  • Enum Constant Details

    • CN

      public static final I18nTp CN
      中国
    • EN

      public static final I18nTp EN
      英文
    • ES

      public static final I18nTp ES
      西班牙
    • JA

      public static final I18nTp JA
      日语
    • FR

      public static final I18nTp FR
      法语
  • Field Details

    • code

      private final String code
  • Constructor Details

    • I18nTp

      private I18nTp(String code)
  • Method Details

    • values

      public static I18nTp[] 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 I18nTp 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
    • getCode

      public String getCode()
    • ofCode

      public static I18nTp ofCode(String code)
    • contains

      public static I18nTp contains(String code)