Enum Class ChineseDateFormat

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

public enum ChineseDateFormat extends Enum<ChineseDateFormat>
农历标准化输出格式枚举
Since:
Java 17+
Author:
Kimi Liu
  • Enum Constant Details

    • GSS

      public static final ChineseDateFormat GSS
      干支纪年 数序纪月 数序纪日
    • XSS

      public static final ChineseDateFormat XSS
      生肖纪年 数序纪月 数序纪日
    • GXSS

      public static final ChineseDateFormat GXSS
      干支生肖纪年 数序纪月(传统表示) 数序纪日
    • GSG

      public static final ChineseDateFormat GSG
      干支纪年 数序纪月 干支纪日
    • GGG

      public static final ChineseDateFormat GGG
      干支纪年 干支纪月 干支纪日
    • MIX

      public static final ChineseDateFormat MIX
      农历年年首所在的公历年份 干支纪年 数序纪月 数序纪日
  • Method Details

    • values

      public static ChineseDateFormat[] 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 ChineseDateFormat 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
    • getName

      public String getName()
      获取农历日期输出格式相关描述
      Returns:
      输出格式信息