public class HolidayHandlerDateWrapper extends Object implements HolidayHandler<Calendar>
| Constructor and Description |
|---|
HolidayHandlerDateWrapper(HolidayHandler<Date> holidayHandler,
BaseCalculator<Date> dateCalculator) |
| Modifier and Type | Method and Description |
|---|---|
Calendar |
adjustDate(Calendar startDate,
int increment,
NonWorkingDayChecker<Calendar> checker)
For a given date, adjust it if required but using the logic across Month/etc for calc
|
String |
getType()
Give the type name for this algorithm.
|
Calendar |
moveCurrentDate(BaseCalculator<Calendar> calc)
If the current date of the give calculator is a non-working day, it will
be moved according to the algorithm implemented.
|
public HolidayHandlerDateWrapper(HolidayHandler<Date> holidayHandler, BaseCalculator<Date> dateCalculator)
public Calendar moveCurrentDate(BaseCalculator<Calendar> calc)
moveCurrentDate in interface HolidayHandler<Calendar>calc - the calculatorpublic Calendar adjustDate(Calendar startDate, int increment, NonWorkingDayChecker<Calendar> checker)
HolidayHandleradjustDate in interface HolidayHandler<Calendar>public String getType()
getType in interface HolidayHandler<Calendar>Copyright © 2006–2022 Appendium - Portfolio Financing Platform. All rights reserved.