Enum Class Holiday.HolidayType

java.lang.Object
java.lang.Enum<Holiday.HolidayType>
cloud.opencode.base.date.holiday.Holiday.HolidayType
All Implemented Interfaces:
Serializable, Comparable<Holiday.HolidayType>, Constable
Enclosing class:
Holiday

public static enum Holiday.HolidayType extends Enum<Holiday.HolidayType>
Types of holidays 假日类型
Since:
JDK 25, opencode-base-date V1.0.0
Author:
Leon Soo www.LeonSoo.com
  • Enum Constant Details

    • PUBLIC

      public static final Holiday.HolidayType PUBLIC
      Public/national holiday 公共/国家假日
    • BANK

      public static final Holiday.HolidayType BANK
      Bank/financial holiday 银行/金融假日
    • RELIGIOUS

      public static final Holiday.HolidayType RELIGIOUS
      Religious holiday 宗教假日
    • CULTURAL

      public static final Holiday.HolidayType CULTURAL
      Cultural/traditional holiday 文化/传统假日
    • OBSERVANCE

      public static final Holiday.HolidayType OBSERVANCE
      Observance (not necessarily a day off) 纪念日(不一定放假)
    • COMPANY

      public static final Holiday.HolidayType COMPANY
      Company-specific holiday 公司特定假日
  • Method Details

    • values

      public static Holiday.HolidayType[] 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 Holiday.HolidayType 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