public class LocalDateCalculator extends AbstractDateCalculator<LocalDate>
DAYS_IN_WEEK| Constructor and Description | 
|---|
LocalDateCalculator()  | 
LocalDateCalculator(String name,
                   LocalDate startDate,
                   HolidayCalendar<LocalDate> holidayCalendar,
                   HolidayHandler<LocalDate> holidayHandler)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
checkBoundary(LocalDate date)
This may throw an  
IndexOutOfBoundsException if the date is not within the
 boundaries. | 
protected LocalDate | 
clone(LocalDate date)  | 
protected LocalDate | 
compareDate(LocalDate date1,
           LocalDate date2,
           boolean returnEarliest)  | 
protected DateCalculator<LocalDate> | 
createNewCalculator(String name,
                   LocalDate startDate,
                   HolidayCalendar<LocalDate> holidays,
                   HolidayHandler<LocalDate> handler)  | 
int | 
getNumberOfBusinessDaysBetween(LocalDate d1,
                              LocalDate d2)
Number of non weekend, non holidays days between d1 and d2, using the Holiday Handler type to match
 what the method moveByBusinessDays requires. 
 | 
protected LocalDate | 
getToday()  | 
boolean | 
isWeekend(LocalDate date)
is the date a non-working day according to the WorkingWeek? 
 | 
DateCalculator<LocalDate> | 
moveByDays(int days)
This changes the current business date held in the calculator, it moves
 the new current business date by the number of days and, if it falls on a
 weekend or holiday, moves it further according to the HolidayHandler
 given in this DateCalculator. 
 | 
DateCalculator<LocalDate> | 
moveByMonths(int months)  | 
DateCalculator<LocalDate> | 
setWorkingWeek(WorkingWeek week)
Set the working week. 
 | 
applyTenor, calculateTenorDates, calculateTenorDates, combine, forceCurrentDateNoAdjustment, getCurrentBusinessDate, getCurrentIncrement, getHolidayCalendar, getHolidayHandler, getHolidayHandlerType, getName, getStartDate, isCurrentDateNonWorking, isNonWorkingDay, moveByBusinessDays, moveByTenor, moveByTenor, moveToSpotDate, setCurrentBusinessDate, setCurrentIncrement, setHolidayCalendar, setHolidayHandler, setName, setStartDatepublic LocalDateCalculator()
public LocalDateCalculator(String name, LocalDate startDate, HolidayCalendar<LocalDate> holidayCalendar, HolidayHandler<LocalDate> holidayHandler)
public DateCalculator<LocalDate> setWorkingWeek(WorkingWeek week)
week - the JodaWorkingWeekIllegalArgumentException - if the week is not a JodaWorkingWeek.public boolean isWeekend(LocalDate date)
public DateCalculator<LocalDate> moveByDays(int days)
DateCalculatordays - number of days (can be <0 or >0)public DateCalculator<LocalDate> moveByMonths(int months)
moveByMonths in class AbstractDateCalculator<LocalDate>protected DateCalculator<LocalDate> createNewCalculator(String name, LocalDate startDate, HolidayCalendar<LocalDate> holidays, HolidayHandler<LocalDate> handler)
createNewCalculator in class AbstractDateCalculator<LocalDate>protected LocalDate getToday()
getToday in class AbstractDateCalculator<LocalDate>protected LocalDate compareDate(LocalDate date1, LocalDate date2, boolean returnEarliest)
compareDate in class AbstractDateCalculator<LocalDate>protected void checkBoundary(LocalDate date)
AbstractDateCalculatorIndexOutOfBoundsException if the date is not within the
 boundaries.checkBoundary in class AbstractDateCalculator<LocalDate>protected LocalDate clone(LocalDate date)
clone in class AbstractDateCalculator<LocalDate>public int getNumberOfBusinessDaysBetween(LocalDate d1, LocalDate d2)
DateCalculatord1 - start dated2 - end dateCopyright © 2006–2022 Appendium - Portfolio Financing Platform. All rights reserved.