Class ChineseNewYearDay

java.lang.Object
org.holiday.calendar.observance.AbstractObservance
org.holiday.calendar.observance.lunar.ChineseNewYearDay
All Implemented Interfaces:
Function<Integer,LocalDate>, Predicate<Integer>, Observance

public class ChineseNewYearDay extends AbstractObservance
Observance of a specific day within the Chinese New Year (Spring Festival) holiday window, numbered from Day 1 (the first day of the first lunar month) through Day 7.

The seven-day Spring Festival window is the statutory public holiday period in China as published by the State Council. Days are consecutive Gregorian calendar days from Day 1 (Chinese New Year's Day) onward.

Author:
Dave Joyce
  • Constructor Details

    • ChineseNewYearDay

      public ChineseNewYearDay(int dayNumber)
      Constructs an observance for the given day of the Spring Festival window.
      Parameters:
      dayNumber - day within the Spring Festival window, in range 1–7
      Throws:
      IllegalArgumentException - if dayNumber is not in range 1–7
  • Method Details