Enum Class ChinaHolidayCalendar.CalendarField
java.lang.Object
java.lang.Enum<ChinaHolidayCalendar.CalendarField>
cloud.opencode.base.date.holiday.ChinaHolidayCalendar.CalendarField
- All Implemented Interfaces:
Serializable, Comparable<ChinaHolidayCalendar.CalendarField>, Constable
- Enclosing class:
ChinaHolidayCalendar
public static enum ChinaHolidayCalendar.CalendarField
extends Enum<ChinaHolidayCalendar.CalendarField>
Selectable column for
ChinaHolidayCalendar.CalendarRow output.
ChinaHolidayCalendar.CalendarRow 可选列。- Since:
- JDK 25, opencode-base-date V1.0.4
- Author:
- Leon Soo www.LeonSoo.com
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDate — 日期Day of week — 星期几Reason: which holiday caused the rest/makeup; empty for normal weekday/weekend — 原因(节假日名称;正常工作日/周末为空)Status: rest or workday — 休息或上班 -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ChinaHolidayCalendar.CalendarField[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DATE
Date — 日期 -
DAY_OF_WEEK
Day of week — 星期几 -
STATUS
Status: rest or workday — 休息或上班 -
REASON
Reason: which holiday caused the rest/makeup; empty for normal weekday/weekend — 原因(节假日名称;正常工作日/周末为空)
-
-
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
-