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

public class EidAlAdhaDay3 extends AbstractObservance
Observance of the third day of Eid al-Adha (12 Dhu al-Hijjah AH), marking the continuation of the Feast of Sacrifice.

The date is synthesized by advancing the first-day date (EidAlAdha) by two calendar days. Data validity range and country-specific CSV source are inherited from the first-day observance.

Author:
Dave Joyce
  • Constructor Details

    • EidAlAdhaDay3

      public EidAlAdhaDay3(String countryCode)
  • 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