Enum Class Various

java.lang.Object
java.lang.Enum<Various>
org.miaixz.bus.core.center.date.culture.en.Various
All Implemented Interfaces:
Serializable, Comparable<Various>, Constable

public enum Various extends Enum<Various>
日期各个部分的枚举 与Calendar相应值对应
Since:
Java 17+
Author:
Kimi Liu
  • Enum Constant Details

  • Method Details

    • values

      public static Various[] 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 Various 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
    • of

      public static Various of(int calendarPartIntValue)
      Calendar相关值转换为DatePart枚举对象
      Parameters:
      calendarPartIntValue - Calendar中关于Week的int值
      Returns:
      Type
    • getValue

      public int getValue()
      获取Calendar中对应的值
      Returns:
      Calendar中对应的值