Top Description Fields Constructors Methods
com.ibm.icu.util

public Class EasterHoliday

Additional top-level class in compilation unit: EasterRule.

extends Holiday
Class Inheritance
Imports
java.util.Date

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.

ICU Status
Draft since ICU 2.8 (retainAll).

Field Summary

Modifier and TypeField and Description
public static final EasterHoliday
ASCENSION

Ascension, 39 days after Easter

public static final EasterHoliday
ASH_WEDNESDAY

Ash Wednesday, start of Lent, 47 days before Easter

public static final EasterHoliday
CORPUS_CHRISTI

Corpus Christi, 60 days after Easter

public static final EasterHoliday
EASTER_MONDAY

Easter Monday, 1 day after Easter

public static final EasterHoliday
EASTER_SUNDAY

Easter Sunday

public static final EasterHoliday
GOOD_FRIDAY

Good Friday, 2 days before Easter

public static final EasterHoliday
MAUNDY_THURSDAY

Maundy Thursday, 3 days before Easter

public static final EasterHoliday
PALM_SUNDAY

Palm Sunday, 7 days before Easter

public static final EasterHoliday
PENTECOST

Pentecost (aka Whit Sunday), 49 days after Easter

public static final EasterHoliday
SHROVE_TUESDAY

Shrove Tuesday, aka Mardi Gras, 48 days before Easter

public static final EasterHoliday
WHIT_MONDAY

Whit Monday, 50 days after Easter

public static final EasterHoliday
WHIT_SUNDAY

Whit Sunday (aka Pentecost), 49 days after Easter

Constructor Summary

AccessConstructor and Description
public
EasterHoliday(String
The name of the holiday
name
)

Construct a holiday that falls on Easter Sunday every year

public
EasterHoliday(int
The number of days before (-) or after (+) Easter
daysAfter
,
String
The name of the holiday
name
)

Construct a holiday that falls a specified number of days before or after Easter Sunday each year.

public
EasterHoliday(int
The number of days before (-) or after (+) Easter
daysAfter
,
boolean
Use the Orthodox calendar?
orthodox
,
String
The name of the holiday
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.

Method Summary

Inherited from com.ibm.icu.util.Holiday:
firstAfterfirstBetweengetDisplayNamegetDisplayNamegetDisplayNamegetHolidaysgetHolidaysgetHolidaysgetRuleisBetweenisOnsetRule

Field Detail

ASCENSIONback to summary
public static final EasterHoliday ASCENSION

Ascension, 39 days after Easter

ICU Status
Draft since ICU 2.8.
ASH_WEDNESDAYback to summary
public static final EasterHoliday ASH_WEDNESDAY

Ash Wednesday, start of Lent, 47 days before Easter

ICU Status
Draft since ICU 2.8.
CORPUS_CHRISTIback to summary
public static final EasterHoliday CORPUS_CHRISTI

Corpus Christi, 60 days after Easter

ICU Status
Draft since ICU 2.8.
EASTER_MONDAYback to summary
public static final EasterHoliday EASTER_MONDAY

Easter Monday, 1 day after Easter

ICU Status
Draft since ICU 2.8.
EASTER_SUNDAYback to summary
public static final EasterHoliday EASTER_SUNDAY

Easter Sunday

ICU Status
Draft since ICU 2.8.
GOOD_FRIDAYback to summary
public static final EasterHoliday GOOD_FRIDAY

Good Friday, 2 days before Easter

ICU Status
Draft since ICU 2.8.
MAUNDY_THURSDAYback to summary
public static final EasterHoliday MAUNDY_THURSDAY

Maundy Thursday, 3 days before Easter

ICU Status
Draft since ICU 2.8.
PALM_SUNDAYback to summary
public static final EasterHoliday PALM_SUNDAY

Palm Sunday, 7 days before Easter

ICU Status
Draft since ICU 2.8.
PENTECOSTback to summary
public static final EasterHoliday PENTECOST

Pentecost (aka Whit Sunday), 49 days after Easter

ICU Status
Draft since ICU 2.8.
SHROVE_TUESDAYback to summary
public static final EasterHoliday SHROVE_TUESDAY

Shrove Tuesday, aka Mardi Gras, 48 days before Easter

ICU Status
Draft since ICU 2.8.
WHIT_MONDAYback to summary
public static final EasterHoliday WHIT_MONDAY

Whit Monday, 50 days after Easter

ICU Status
Draft since ICU 2.8.
WHIT_SUNDAYback to summary
public static final EasterHoliday WHIT_SUNDAY

Whit Sunday (aka Pentecost), 49 days after Easter

ICU Status
Draft since ICU 2.8.

Constructor Detail

EasterHolidayback to summary
public EasterHoliday(String name)

Construct a holiday that falls on Easter Sunday every year

Parameters
name:String

The name of the holiday

ICU Status
Draft since ICU 2.8.
EasterHolidayback to summary
public EasterHoliday(int daysAfter, String name)

Construct a holiday that falls a specified number of days before or after Easter Sunday each year.

Parameters
daysAfter:int

The number of days before (-) or after (+) Easter

name:String

The name of the holiday

ICU Status
Draft since ICU 2.8.
EasterHolidayback to summary
public EasterHoliday(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.

Parameters
daysAfter:int

The number of days before (-) or after (+) Easter

orthodox:boolean

Use the Orthodox calendar?

name:String

The name of the holiday

ICU Status
Draft since ICU 2.8.