java.lang.Object
org.holiday.calendar.observance.AbstractObservance
org.holiday.calendar.observance.lunar.VesakDay
Observance of Vesak Day (also known as Buddha's Birthday), commemorating
the birth, enlightenment, and death of Gautama Buddha. In Singapore, Vesak
Day falls on the full moon of the fourth month of the Chinese lunisolar
calendar, observed as a public holiday on the date officially gazetted by
the Singapore government.
Dates for 2019–2030 are sourced from official Singapore Ministry of Manpower (MOM) public holiday gazette notifications. Dates for 2031–2055 are pre-computed from the Hong Kong Observatory Gregorian-Lunar Calendar Conversion Tables (day 15 of Chinese lunisolar month 4 in SGT), pending official MOM gazette confirmation. All entries should be verified against MOM announcements as Singapore approaches each 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.protected booleanisValidYear(int year) Determine whether this observance applies in the given year.Methods inherited from class org.holiday.calendar.observance.AbstractObservance
apply, test
-
Constructor Details
-
VesakDay
public VesakDay()
-
-
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
-
isValidYear
protected boolean isValidYear(int year) Description copied from class:AbstractObservanceDetermine whether this observance applies in the given year. Defaults totrue(all years are valid).- Overrides:
isValidYearin classAbstractObservance- Parameters:
year- the year to test- Returns:
trueif this observance applies
-