Package com.ibm.icu.util
Class EasterHoliday
java.lang.Object
com.ibm.icu.util.Holiday
com.ibm.icu.util.EasterHoliday
- All Implemented Interfaces:
DateRule
Note: The Holiday framework is a technology preview.
Despite its age, is still draft API, and clients should treat it as such.
A Holiday subclass which represents holidays that occur
a fixed number of days before or after Easter. Supports both the
Western and Orthodox methods for calculating Easter.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EasterHoliday
Ascension, 39 days after Easterstatic final EasterHoliday
Ash Wednesday, start of Lent, 47 days before Easterstatic final EasterHoliday
Corpus Christi, 60 days after Easterstatic final EasterHoliday
Easter Monday, 1 day after Easterstatic final EasterHoliday
Easter Sundaystatic final EasterHoliday
Good Friday, 2 days before Easterstatic final EasterHoliday
Maundy Thursday, 3 days before Easterstatic final EasterHoliday
Palm Sunday, 7 days before Easterstatic final EasterHoliday
Pentecost (aka Whit Sunday), 49 days after Easterstatic final EasterHoliday
Shrove Tuesday, aka Mardi Gras, 48 days before Easterstatic final EasterHoliday
Whit Monday, 50 days after Easterstatic final EasterHoliday
Whit Sunday (aka Pentecost), 49 days after Easter -
Constructor Summary
ConstructorsConstructorDescriptionEasterHoliday
(int daysAfter, boolean orthodox, String name) Construct a holiday that falls a specified number of days before or after Easter Sunday each year, using either the Western or Orthodox calendar.EasterHoliday
(int daysAfter, String name) Construct a holiday that falls a specified number of days before or after Easter Sunday each year.EasterHoliday
(String name) Construct a holiday that falls on Easter Sunday every year -
Method Summary
Methods inherited from class com.ibm.icu.util.Holiday
firstAfter, firstBetween, getDisplayName, getDisplayName, getDisplayName, getHolidays, getHolidays, getHolidays, getRule, isBetween, isOn, setRule
-
Field Details
-
SHROVE_TUESDAY
Shrove Tuesday, aka Mardi Gras, 48 days before Easter -
ASH_WEDNESDAY
Ash Wednesday, start of Lent, 47 days before Easter -
PALM_SUNDAY
Palm Sunday, 7 days before Easter -
MAUNDY_THURSDAY
Maundy Thursday, 3 days before Easter -
GOOD_FRIDAY
Good Friday, 2 days before Easter -
EASTER_SUNDAY
Easter Sunday -
EASTER_MONDAY
Easter Monday, 1 day after Easter -
ASCENSION
Ascension, 39 days after Easter -
PENTECOST
Pentecost (aka Whit Sunday), 49 days after Easter -
WHIT_SUNDAY
Whit Sunday (aka Pentecost), 49 days after Easter -
WHIT_MONDAY
Whit Monday, 50 days after Easter -
CORPUS_CHRISTI
Corpus Christi, 60 days after Easter
-
-
Constructor Details
-
EasterHoliday
Construct a holiday that falls on Easter Sunday every year- Parameters:
name
- The name of the holiday
-
EasterHoliday
Construct a holiday that falls a specified number of days before or after Easter Sunday each year.- Parameters:
daysAfter
- The number of days before (-) or after (+) Eastername
- The name of the holiday
-
EasterHoliday
Construct a holiday that falls a specified number of days before or after Easter Sunday each year, using either the Western or Orthodox calendar.- Parameters:
daysAfter
- The number of days before (-) or after (+) Easterorthodox
- Use the Orthodox calendar?name
- The name of the holiday
-