public static class BusinessCalendar.Companion
Modifier and Type | Method and Description |
---|---|
int |
calculateDaysBetween(java.time.LocalDate startDate,
java.time.LocalDate endDate,
DayCountBasisYear dcbYear,
DayCountBasisDay dcbDay) |
java.util.List<java.time.LocalDate> |
createGenericSchedule(java.time.LocalDate startDate,
Frequency period,
BusinessCalendar calendar,
DateRollConvention dateRollConvention,
int noOfAdditionalPeriods,
java.time.LocalDate endDate,
java.lang.Integer periodOffset)
Calculates an event schedule that moves events around to ensure they fall on working days.
|
BusinessCalendar |
getEMPTY() |
java.time.LocalDate |
getOffsetDate(java.time.LocalDate startDate,
Frequency period,
int steps)
Calculates the date from @startDate moving forward 'steps' of time size 'period'. Does not apply calendar
logic / roll conventions.
|
java.time.LocalDate |
parseDateFromString(java.lang.String it)
Parses a date of the form YYYY-MM-DD, like 2016-01-10 for 10th Jan.
|
public BusinessCalendar getEMPTY()
public int calculateDaysBetween(java.time.LocalDate startDate, java.time.LocalDate endDate, DayCountBasisYear dcbYear, DayCountBasisDay dcbDay)
public java.time.LocalDate parseDateFromString(java.lang.String it)
Parses a date of the form YYYY-MM-DD, like 2016-01-10 for 10th Jan.
public java.util.List<java.time.LocalDate> createGenericSchedule(java.time.LocalDate startDate, Frequency period, BusinessCalendar calendar, DateRollConvention dateRollConvention, int noOfAdditionalPeriods, java.time.LocalDate endDate, java.lang.Integer periodOffset)
Calculates an event schedule that moves events around to ensure they fall on working days.
public java.time.LocalDate getOffsetDate(java.time.LocalDate startDate, Frequency period, int steps)
Calculates the date from @startDate moving forward 'steps' of time size 'period'. Does not apply calendar logic / roll conventions.