Module org.holiday.calendar.mena
Class IndependenceDay
java.lang.Object
org.holiday.calendar.observance.AbstractObservance
org.holiday.calendar.observance.hebrew.IndependenceDay
Observance of Yom Ha'atzmaut — Israeli Independence Day (5 Iyar).
The natural date is 5 Iyar, but Israeli law (amended 2004) requires the observed date to be shifted when Yom Hazikaron (Memorial Day, 4 Iyar) would fall on a problematic day relative to Shabbat (Friday–Saturday) or its immediate aftermath (Sunday). The complete postponement rule based on the day of week of natural 5 Iyar:
| Natural 5 Iyar | Observed date |
|---|---|
| Sunday | Monday (+1) — Iyar 4 would be Shabbat |
| Monday | Tuesday (+1) — Iyar 4 would be Sunday (post-Shabbat) |
| Tuesday | Tuesday (no shift) |
| Wednesday | Wednesday (no shift) |
| Thursday | Thursday (no shift) |
| Friday | Thursday (−1) — Iyar 4 would be Erev Shabbat |
| Saturday | Thursday (−2) — 5 Iyar itself is Shabbat |
This observance applies the shift internally and must be declared
rollable(false) — the calendar's DateRoll must not be
applied on top of this already-adjusted date.
- 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
-
IndependenceDay
public IndependenceDay()
-
-
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
-