Enum Class ChineseDateFormat
- All Implemented Interfaces:
Serializable,Comparable<ChineseDateFormat>,Constable
农历标准化输出格式枚举
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetName()获取农历日期输出格式相关描述static ChineseDateFormatReturns the enum constant of this class with the specified name.static ChineseDateFormat[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GSS
干支纪年 数序纪月 数序纪日 -
XSS
生肖纪年 数序纪月 数序纪日 -
GXSS
干支生肖纪年 数序纪月(传统表示) 数序纪日 -
GSG
干支纪年 数序纪月 干支纪日 -
GGG
干支纪年 干支纪月 干支纪日 -
MIX
农历年年首所在的公历年份 干支纪年 数序纪月 数序纪日
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getName
获取农历日期输出格式相关描述- Returns:
- 输出格式信息
-