public interface DayCountConventionInterface
getDaycount(LocalDate, LocalDate)
and getDaycountFraction(LocalDate, LocalDate)
.
Classes implementing these methods then provide day counting and day count fractions for
a given interval.Modifier and Type | Method and Description |
---|---|
double |
getDaycount(LocalDate startDate,
LocalDate endDate)
Return the number of days between startDate and endDate given the
specific daycount convention.
|
double |
getDaycountFraction(LocalDate startDate,
LocalDate endDate)
Return the daycount fraction corresponding to the period from startDate to endDate given the
specific daycount convention.
|
double getDaycount(LocalDate startDate, LocalDate endDate)
startDate
- The start date given as a LocalDate
.endDate
- The end date given as a LocalDate
.double getDaycountFraction(LocalDate startDate, LocalDate endDate)
startDate
- The start date given as a LocalDate
.endDate
- The end date given as a LocalDate
.Copyright © 2015. All rights reserved.