Enum Class Holiday.HolidayType
- All Implemented Interfaces:
Serializable, Comparable<Holiday.HolidayType>, Constable
- Enclosing class:
Holiday
Types of holidays
假日类型
- Since:
- JDK 25, opencode-base-date V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Holiday.HolidayTypeReturns the enum constant of this class with the specified name.static Holiday.HolidayType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PUBLIC
Public/national holiday 公共/国家假日 -
BANK
Bank/financial holiday 银行/金融假日 -
RELIGIOUS
Religious holiday 宗教假日 -
CULTURAL
Cultural/traditional holiday 文化/传统假日 -
OBSERVANCE
Observance (not necessarily a day off) 纪念日(不一定放假) -
COMPANY
Company-specific holiday 公司特定假日
-
-
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
-