com.ibm.icu.util
Class EasterHoliday

java.lang.Object
  extended by com.ibm.icu.util.Holiday
      extended by com.ibm.icu.util.EasterHoliday
All Implemented Interfaces:
DateRule

Deprecated. This is a draft API and might change in a future release of ICU.

public class EasterHoliday
extends Holiday

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
static EasterHoliday ASCENSION
          Deprecated. This is a draft API and might change in a future release of ICU.
static EasterHoliday ASH_WEDNESDAY
          Deprecated. This is a draft API and might change in a future release of ICU.
static EasterHoliday CORPUS_CHRISTI
          Deprecated. This is a draft API and might change in a future release of ICU.
static EasterHoliday EASTER_MONDAY
          Deprecated. This is a draft API and might change in a future release of ICU.
static EasterHoliday EASTER_SUNDAY
          Deprecated. This is a draft API and might change in a future release of ICU.
static EasterHoliday GOOD_FRIDAY
          Deprecated. This is a draft API and might change in a future release of ICU.
static EasterHoliday MAUNDY_THURSDAY
          Deprecated. This is a draft API and might change in a future release of ICU.
static EasterHoliday PALM_SUNDAY
          Deprecated. This is a draft API and might change in a future release of ICU.
static EasterHoliday PENTECOST
          Deprecated. This is a draft API and might change in a future release of ICU.
static EasterHoliday SHROVE_TUESDAY
          Deprecated. This is a draft API and might change in a future release of ICU.
static EasterHoliday WHIT_MONDAY
          Deprecated. This is a draft API and might change in a future release of ICU.
static EasterHoliday WHIT_SUNDAY
          Deprecated. This is a draft API and might change in a future release of ICU.
 
Constructor Summary
EasterHoliday(int daysAfter, boolean orthodox, String name)
          Deprecated. This is a draft API and might change in a future release of ICU.
EasterHoliday(int daysAfter, String name)
          Deprecated. This is a draft API and might change in a future release of ICU.
EasterHoliday(String name)
          Deprecated. This is a draft API and might change in a future release of ICU.
 
Method Summary
 
Methods inherited from class com.ibm.icu.util.Holiday
firstAfter, firstBetween, getDisplayName, getDisplayName, getDisplayName, getHolidays, getHolidays, getHolidays, getRule, isBetween, isOn, setRule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHROVE_TUESDAY

public static final EasterHoliday SHROVE_TUESDAY
Deprecated. This is a draft API and might change in a future release of ICU.
Shrove Tuesday, aka Mardi Gras, 48 days before Easter


ASH_WEDNESDAY

public static final EasterHoliday ASH_WEDNESDAY
Deprecated. This is a draft API and might change in a future release of ICU.
Ash Wednesday, start of Lent, 47 days before Easter


PALM_SUNDAY

public static final EasterHoliday PALM_SUNDAY
Deprecated. This is a draft API and might change in a future release of ICU.
Palm Sunday, 7 days before Easter


MAUNDY_THURSDAY

public static final EasterHoliday MAUNDY_THURSDAY
Deprecated. This is a draft API and might change in a future release of ICU.
Maundy Thursday, 3 days before Easter


GOOD_FRIDAY

public static final EasterHoliday GOOD_FRIDAY
Deprecated. This is a draft API and might change in a future release of ICU.
Good Friday, 2 days before Easter


EASTER_SUNDAY

public static final EasterHoliday EASTER_SUNDAY
Deprecated. This is a draft API and might change in a future release of ICU.
Easter Sunday


EASTER_MONDAY

public static final EasterHoliday EASTER_MONDAY
Deprecated. This is a draft API and might change in a future release of ICU.
Easter Monday, 1 day after Easter


ASCENSION

public static final EasterHoliday ASCENSION
Deprecated. This is a draft API and might change in a future release of ICU.
Ascension, 39 days after Easter


PENTECOST

public static final EasterHoliday PENTECOST
Deprecated. This is a draft API and might change in a future release of ICU.
Pentecost (aka Whit Sunday), 49 days after Easter


WHIT_SUNDAY

public static final EasterHoliday WHIT_SUNDAY
Deprecated. This is a draft API and might change in a future release of ICU.
Whit Sunday (aka Pentecost), 49 days after Easter


WHIT_MONDAY

public static final EasterHoliday WHIT_MONDAY
Deprecated. This is a draft API and might change in a future release of ICU.
Whit Monday, 50 days after Easter


CORPUS_CHRISTI

public static final EasterHoliday CORPUS_CHRISTI
Deprecated. This is a draft API and might change in a future release of ICU.
Corpus Christi, 60 days after Easter

Constructor Detail

EasterHoliday

public EasterHoliday(String name)
Deprecated. This is a draft API and might change in a future release of ICU.

Construct a holiday that falls on Easter Sunday every year

Parameters:
name - The name of the holiday

EasterHoliday

public EasterHoliday(int daysAfter,
                     String name)
Deprecated. This is a draft API and might change in a future release of ICU.

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 (+) Easter
name - The name of the holiday

EasterHoliday

public EasterHoliday(int daysAfter,
                     boolean orthodox,
                     String name)
Deprecated. This is a draft API and might change in a future release of ICU.

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 (+) Easter
orthodox - Use the Orthodox calendar?
name - The name of the holiday


Copyright (c) 2004 IBM Corporation and others.