Module org.holiday.calendar.apac
Class DragonBoatFestival
java.lang.Object
org.holiday.calendar.observance.AbstractObservance
org.holiday.calendar.observance.lunar.DragonBoatFestival
Observance of Dragon Boat Festival (端午节, Duanwu), which falls on the
5th day of the 5th month of the Chinese lunisolar calendar.
The date is computed algorithmically via Time4J's ChineseCalendar,
using the Chinese year that begins in the given Gregorian year.
- Author:
- Dave Joyce
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LocalDatecomputeDate(int year) Compute the date for this observance in the given year.Methods inherited from class org.holiday.calendar.observance.AbstractObservance
apply, isValidYear, test
-
Constructor Details
-
DragonBoatFestival
public DragonBoatFestival()
-
-
Method Details
-
computeDate
Description copied from class:AbstractObservanceCompute the date for this observance in the given year. Only called whenAbstractObservance.isValidYear(int)returnstrue.- Specified by:
computeDatein classAbstractObservance- Parameters:
year- the year for which to compute the date- Returns:
- computed holiday date
-