Module org.holiday.calendar.mena
Class EidAlAdhaDay4
java.lang.Object
org.holiday.calendar.observance.AbstractObservance
org.holiday.calendar.observance.islamic.mena.EidAlAdhaDay4
Observance of the fourth day of Eid al-Adha (13 Dhu al-Hijjah AH), marking
the final day of the Feast of Sacrifice.
The date is synthesized by advancing the first-day date (EidAlAdha)
by three calendar days. Data validity range and country-specific CSV source are
inherited from the first-day observance.
Turkey observes four days of Eid al-Adha, one more than the three days observed by GCC states (Saudi Arabia, UAE).
- 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
-
EidAlAdhaDay4
-
-
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
-