|
|||||||||
| 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 KitCalculatorsFactory<E>
Factory will create new instances of calculators, these are lightweight, each thread should use the factory as a given calculator should NOT be shared across thread (unless you know what you're doing) as the startDate, current date and working week would be shared. Once created, the set of holidays will NOT change even if a new set is registered; one needs to get a new DateCalculator to get the new set.
| Method Summary | |
|---|---|
DateCalculator<E> |
getDateCalculator(String name,
String holidayHandlerType)
Create a new DateCalculator for a given name and type of handling. |
HolidayCalendar<E> |
getHolidayCalendar(String calendarName)
|
IMMDateCalculator<E> |
getIMMDateCalculator()
Create a new IMMDateCalculator. |
PeriodCountCalculator<E> |
getPeriodCountCalculator()
Create a new PeriodCountCalculator. |
Set<String> |
getRegisteredHolidayCalendarNames()
|
boolean |
isHolidayCalendarRegistered(String calendarName)
|
void |
registerHolidays(String calendarName,
HolidayCalendar<E> holidaysCalendar)
Use this method to register a holidays calendar. |
void |
unregisterAllHolidayCalendars()
unregister all holiday calendars; |
void |
unregisterHolidayCalendar(String calendarName)
Unregister a given holiday calendar |
| Method Detail |
|---|
DateCalculator<E> getDateCalculator(String name,
String holidayHandlerType)
name - calendar name (holidays set interested in). If there is set of
holidays with that name, it will return a DateCalculator with
an empty holiday set (will work on Weekend only).holidayHandlerType - typically one of the value of HolidayHandlerType or null.
IllegalArgumentException - if the type is not null or a valid value.
void registerHolidays(String calendarName,
HolidayCalendar<E> holidaysCalendar)
calendarName - the calendar name to register these holidays under.holidaysCalendar - the holiday calendar (non-working days with boundaries).boolean isHolidayCalendarRegistered(String calendarName)
HolidayCalendar<E> getHolidayCalendar(String calendarName)
Set<String> getRegisteredHolidayCalendarNames()
void unregisterHolidayCalendar(String calendarName)
calendarName - the calendar name to unregister.void unregisterAllHolidayCalendars()
PeriodCountCalculator<E> getPeriodCountCalculator()
IMMDateCalculator<E> getIMMDateCalculator()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||