Enum Class ChronoDate

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

public enum ChronoDate extends Enum<ChronoDate>
日期类型
Since:
2023-05-10 下午 03:21
Author:
xyb
  • Enum Constant Details

    • YEARS

      public static final ChronoDate YEARS
    • FIRST_HALF_YEAR

      public static final ChronoDate FIRST_HALF_YEAR
      上半年
    • NEXT_HALF_YEAR

      public static final ChronoDate NEXT_HALF_YEAR
      下半年
    • QUARTER

      public static final ChronoDate QUARTER
      季节
    • MONTHS

      public static final ChronoDate MONTHS
    • WEEKS

      public static final ChronoDate WEEKS
    • DAYS

      public static final ChronoDate DAYS
  • Field Details

    • code

      private final Integer code
      编码
    • name

      private final String name
      名称
  • Constructor Details

  • Method Details

    • values

      public static ChronoDate[] 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 ChronoDate 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 Integer getCode()
    • getName

      public String getName()