|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

E - a representation of a date, typically JDK: Date, Calendar;
Joda:LocalDate, YearMonthDaypublic interface HolidayCalendar<E>
A Holiday Calendar not only defines a set of holiday dates but an early and late boundary for these dates, e.g. putting the holidays for 2006 in a set with limits of 1 Jan 2006 and 31 Dec 2006 means that 2006 is covered, not that 31 Dec is a holiday itself.
| Method Summary | |
|---|---|
E |
getEarlyBoundary()
Returns the earliest date covered by this HolidayCalendar. |
Set<E> |
getHolidays()
Returns an immutable set of holidays. |
E |
getLateBoundary()
Returns the latest date covered by this HolidayCalendar. |
boolean |
isHoliday(E date)
Check if a date is a holiday. |
void |
setEarlyBoundary(E earlyBoundary)
Sets the earliest date (must be <= first date in holiday set) |
void |
setHolidays(Set<E> holidays)
Takes a copy of the holidays and store it in an immutable set. |
void |
setLateBoundary(E lateBoundary)
Sets the latest date (must be <= first date in holiday set) |
| Method Detail |
|---|
Set<E> getHolidays()
void setHolidays(Set<E> holidays)
E getEarlyBoundary()
void setEarlyBoundary(E earlyBoundary)
earlyBoundary - E getLateBoundary()
void setLateBoundary(E lateBoundary)
lateBoundary - boolean isHoliday(E date)
date -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||