public class CalendarForwardUnlessNegativeHandler extends Object implements HolidayHandler<Calendar>
Calendar
implementation of the
HolidayHandler
, for the
Forward algorithm.Constructor and Description |
---|
CalendarForwardUnlessNegativeHandler() |
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> calculator)
If the current date of the give calculator is a non-working day, it will
be moved according to the algorithm implemented.
|
public CalendarForwardUnlessNegativeHandler()
public Calendar moveCurrentDate(BaseCalculator<Calendar> calculator)
moveCurrentDate
in interface HolidayHandler<Calendar>
calculator
- the calculatorpublic Calendar adjustDate(Calendar startDate, int increment, NonWorkingDayChecker<Calendar> checker)
HolidayHandler
adjustDate
in interface HolidayHandler<Calendar>
public String getType()
getType
in interface HolidayHandler<Calendar>
Copyright © 2006–2022 Appendium - Portfolio Financing Platform. All rights reserved.