public class YearMonthDayDateCalculator extends AbstractDateCalculator<org.joda.time.YearMonthDay>
DAYS_IN_WEEK| Constructor and Description |
|---|
YearMonthDayDateCalculator() |
YearMonthDayDateCalculator(String name,
org.joda.time.YearMonthDay startDate,
HolidayCalendar<org.joda.time.YearMonthDay> nonWorkingDays,
HolidayHandler<org.joda.time.YearMonthDay> holidayHandler) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkBoundary(org.joda.time.YearMonthDay date)
This may throw an
IndexOutOfBoundsException if the date is not within the
boundaries. |
protected org.joda.time.YearMonthDay |
clone(org.joda.time.YearMonthDay date) |
protected org.joda.time.YearMonthDay |
compareDate(org.joda.time.YearMonthDay date1,
org.joda.time.YearMonthDay date2,
boolean returnEarliest) |
protected DateCalculator<org.joda.time.YearMonthDay> |
createNewCalculator(String name,
org.joda.time.YearMonthDay startDate,
HolidayCalendar<org.joda.time.YearMonthDay> holidays,
HolidayHandler<org.joda.time.YearMonthDay> handler) |
protected org.joda.time.YearMonthDay |
getToday() |
boolean |
isWeekend(org.joda.time.YearMonthDay date)
is the date a non-working day according to the WorkingWeek?
|
DateCalculator<org.joda.time.YearMonthDay> |
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.
|
protected DateCalculator<org.joda.time.YearMonthDay> |
moveByMonths(int months) |
DateCalculator<org.joda.time.YearMonthDay> |
setStartDate(org.joda.time.YearMonthDay startDate)
Set both start date and current date
|
DateCalculator<org.joda.time.YearMonthDay> |
setWorkingWeek(WorkingWeek week)
Allows user to define what their Working Week should be (default is
Mon-Fri).
|
calculateTenorDates, calculateTenorDates, combine, getCurrentBusinessDate, getCurrentIncrement, getHolidayCalendar, getHolidayHandler, getHolidayHandlerType, getName, getStartDate, isCurrentDateNonWorking, isNonWorkingDay, moveByBusinessDays, moveByTenor, moveByTenor, setCurrentBusinessDate, setCurrentIncrement, setHolidayCalendar, setHolidayHandler, setNamepublic YearMonthDayDateCalculator()
public YearMonthDayDateCalculator(String name, org.joda.time.YearMonthDay startDate, HolidayCalendar<org.joda.time.YearMonthDay> nonWorkingDays, HolidayHandler<org.joda.time.YearMonthDay> holidayHandler)
public DateCalculator<org.joda.time.YearMonthDay> setWorkingWeek(WorkingWeek week)
DateCalculatorweek - an immutable definition of a week.public boolean isWeekend(org.joda.time.YearMonthDay date)
public DateCalculator<org.joda.time.YearMonthDay> moveByDays(int days)
DateCalculatordays - number of days (can be <0 or >0)protected DateCalculator<org.joda.time.YearMonthDay> createNewCalculator(String name, org.joda.time.YearMonthDay startDate, HolidayCalendar<org.joda.time.YearMonthDay> holidays, HolidayHandler<org.joda.time.YearMonthDay> handler)
createNewCalculator in class AbstractDateCalculator<org.joda.time.YearMonthDay>public final DateCalculator<org.joda.time.YearMonthDay> setStartDate(org.joda.time.YearMonthDay startDate)
AbstractDateCalculatorsetStartDate in interface DateCalculator<org.joda.time.YearMonthDay>setStartDate in class AbstractDateCalculator<org.joda.time.YearMonthDay>startDate - the reference date for this calculator, the current business
date is also updated and may be moved if it falls on a non
working day (holiday/weekend).protected org.joda.time.YearMonthDay getToday()
getToday in class AbstractDateCalculator<org.joda.time.YearMonthDay>protected DateCalculator<org.joda.time.YearMonthDay> moveByMonths(int months)
moveByMonths in class AbstractDateCalculator<org.joda.time.YearMonthDay>protected org.joda.time.YearMonthDay compareDate(org.joda.time.YearMonthDay date1,
org.joda.time.YearMonthDay date2,
boolean returnEarliest)
compareDate in class AbstractDateCalculator<org.joda.time.YearMonthDay>protected void checkBoundary(org.joda.time.YearMonthDay date)
AbstractDateCalculatorIndexOutOfBoundsException if the date is not within the
boundaries.checkBoundary in class AbstractDateCalculator<org.joda.time.YearMonthDay>protected org.joda.time.YearMonthDay clone(org.joda.time.YearMonthDay date)
clone in class AbstractDateCalculator<org.joda.time.YearMonthDay>Copyright © 2006–2014 Appendium - Portfolio Financing Platform. All rights reserved.