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

java.lang.Objectnet.objectlab.kit.datecalc.common.DefaultHolidayCalendar<E>
public class DefaultHolidayCalendar<E>
| Constructor Summary | |
|---|---|
DefaultHolidayCalendar()
|
|
DefaultHolidayCalendar(Set<E> holidays)
|
|
DefaultHolidayCalendar(Set<E> holidays,
E earlyBoundary,
E lateBoundary)
|
|
| 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) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultHolidayCalendar()
public DefaultHolidayCalendar(Set<E> holidays,
E earlyBoundary,
E lateBoundary)
public DefaultHolidayCalendar(Set<E> holidays)
| Method Detail |
|---|
public E getEarlyBoundary()
HolidayCalendar
getEarlyBoundary in interface HolidayCalendar<E>public Set<E> getHolidays()
HolidayCalendar
getHolidays in interface HolidayCalendar<E>public E getLateBoundary()
HolidayCalendar
getLateBoundary in interface HolidayCalendar<E>public void setEarlyBoundary(E earlyBoundary)
HolidayCalendar
setEarlyBoundary in interface HolidayCalendar<E>public final void setHolidays(Set<E> holidays)
HolidayCalendar
setHolidays in interface HolidayCalendar<E>public void setLateBoundary(E lateBoundary)
HolidayCalendar
setLateBoundary in interface HolidayCalendar<E>public boolean isHoliday(E date)
HolidayCalendar
isHoliday in interface HolidayCalendar<E>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||