- All Implemented Interfaces:
- Direct Known Subclasses:
public abstract class DayCountConvention_ACT extends Object implements DayCountConventionBase class which calculates the day count by calculating the actual number of days between startDate and endDate. A fractional day is rounded to the approximately nearest day.
- Christian Fries
Constructors Constructor Description
DayCountConvention_ACT()Create an ACT day count convention.
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description
daysBetween(LocalDate startDate, LocalDate endDate)Returns the number of days, between two dates.
getDaycount(LocalDate startDate, LocalDate endDate)Return the number of days between startDate and endDate given the specific daycount convention.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDaycountDescription copied from interface:
DayCountConventionReturn the number of days between startDate and endDate given the specific daycount convention.
daysBetweenReturns the number of days, between two dates. A fractional day is rounded to the approximately nearest day. The formula implemented is
(endDate.toEpochDay() - startDate.toEpochDay());
startDate- The start date of the interval.
endDate- The end date of the interval.
- Number of days between startDate and endDate.