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

public class Deepavali extends AbstractObservance
Observance of Deepavali (Diwali), the Hindu Festival of Lights. In Singapore, Deepavali is observed on the first day of the Tamil month of Karthigai and is officially gazetted by the Singapore government each year.

Dates for 2019–2030 are sourced from official Singapore Ministry of Manpower (MOM) public holiday gazette notifications. Dates for 2031–2055 are derived from Tamil Panchang calculations (Karthigai month commencement / Karthigai Amavasai, IST/SGT) cross-referenced with Drik Panchang astronomical tables, pending official Singapore MOM public holiday gazette confirmation. All entries should be verified against MOM announcements as Singapore approaches each year.

Author:
Dave Joyce
  • Constructor Details

    • Deepavali

      public Deepavali()
  • Method Details

    • computeDate

      protected LocalDate computeDate(int year)
      Description copied from class: AbstractObservance
      Compute the date for this observance in the given year. Only called when AbstractObservance.isValidYear(int) returns true.
      Specified by:
      computeDate in class AbstractObservance
      Parameters:
      year - the year for which to compute the date
      Returns:
      computed holiday date
    • isValidYear

      protected boolean isValidYear(int year)
      Description copied from class: AbstractObservance
      Determine whether this observance applies in the given year. Defaults to true (all years are valid).
      Overrides:
      isValidYear in class AbstractObservance
      Parameters:
      year - the year to test
      Returns:
      true if this observance applies