public static interface DayCount.ScheduleInfo
Some DayCount implementations require additional information about the schedule.
Implementations of this interface provide that information.
| Modifier and Type | Method and Description |
|---|---|
default LocalDate |
getEndDate()
Gets the end date of the schedule.
|
default Frequency |
getFrequency()
Gets the periodic frequency of the schedule period.
|
default LocalDate |
getPeriodEndDate(LocalDate date)
Gets the end date of the schedule period.
|
default LocalDate |
getStartDate()
Gets the start date of the schedule.
|
default boolean |
isEndOfMonthConvention()
Checks if the end of month convention is in use.
|
default LocalDate getStartDate()
The first date in the schedule. If the schedule adjusts for business days, then this is the adjusted date.
This throws an exception by default.
UnsupportedOperationException - if the date cannot be obtaineddefault LocalDate getEndDate()
The last date in the schedule. If the schedule adjusts for business days, then this is the adjusted date.
This throws an exception by default.
UnsupportedOperationException - if the date cannot be obtaineddefault LocalDate getPeriodEndDate(LocalDate date)
This is called when a day count requires the end date of the schedule period.
This throws an exception by default.
date - the date to find the period end date forUnsupportedOperationException - if the date cannot be obtaineddefault Frequency getFrequency()
This is called when a day count requires the periodic frequency of the schedule.
This throws an exception by default.
UnsupportedOperationException - if the frequency cannot be obtaineddefault boolean isEndOfMonthConvention()
This is called when a day count needs to know whether the end-of-month convention is in use.
This is true by default.
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.