Located in compilation unit of com.
| Modifier and Type | Field and Description |
|---|---|
| private GregorianCalendar | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private Date | computeInYear(Date date, GregorianCalendar cal)
Compute the month and date on which this holiday falls in the year containing the date "date". |
| private Date | |
| public Date | firstAfter(Date
Only occurrances on or after this date are returned. start)Implements com. |
| public Date | firstBetween(Date
Only occurrances on or after this date are returned. start, Date Only occurrances before this date are returned. end)Implements com. |
| public boolean | isBetween(Date start, Date end)
Implements com. |
| public boolean | isOn(Date
The date to check. date)Implements com. |
| calendar | back to summary |
|---|---|
| private GregorianCalendar calendar | |
| daysAfterEaster | back to summary |
|---|---|
| private int daysAfterEaster | |
| EasterRule | back to summary |
|---|---|
| public EasterRule(int daysAfterEaster, boolean isOrthodox) | |
| computeInYear | back to summary |
|---|---|
| private Date computeInYear(Date date, GregorianCalendar cal) Compute the month and date on which this holiday falls in the year containing the date "date". First figure out which date Easter lands on in this year, and then add the offset for this holiday to get the right date. The algorithm here is taken from the Calendar FAQ. | |
| doFirstBetween | back to summary |
|---|---|
| private Date doFirstBetween(Date start, Date end) | |
| firstAfter | back to summary |
|---|---|
| public Date firstAfter(Date start) Implements com. Return the first occurrence of this rule on or after the given date
| |
| firstBetween | back to summary |
|---|---|
| public Date firstBetween(Date start, Date end) Implements com. Return the first occurrence of this rule on or after the given start date and before the given end date.
| |
| isBetween | back to summary |
|---|---|
| public boolean isBetween(Date start, Date end) Implements com. Return true if Easter occurs between the two dates given
| |
| isOn | back to summary |
|---|---|
| public boolean isOn(Date date) Implements com. Return true if the given Date is on the same day as Easter
| |