Enum Class Fields.Week

java.lang.Object
java.lang.Enum<Fields.Week>
org.aoju.bus.core.lang.Fields.Week
All Implemented Interfaces:
Serializable, Comparable<Fields.Week>, Constable
Enclosing class:
Fields

public static enum Fields.Week extends Enum<Fields.Week>
星期枚举 与Calendar中的星期int值对应
See Also:
  • Enum Constant Details

  • Method Details

    • values

      public static Fields.Week[] 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 Fields.Week 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
    • getByCode

      public static Fields.Week getByCode(int code)
      根据code查询星期名称枚举
      Parameters:
      code - code
      Returns:
      this
    • getShortNameByCode

      public static String getShortNameByCode(int code)
      根据code查询星期英文简称
      Parameters:
      code - code
      Returns:
      String
    • getEnNameByCode

      public static String getEnNameByCode(int code)
      根据code查询星期英文全称
      Parameters:
      code - code
      Returns:
      String
    • getCnNameByCode

      public static String getCnNameByCode(int code)
      根据code查询星期中文名称
      Parameters:
      code - code
      Returns:
      String
    • getKey

      public int getKey()
    • getEnName

      public String getEnName()
    • getCnName

      public String getCnName()