Class SimpleDayCount
- java.lang.Object
-
- com.activeviam.risk.core.dates.impl.SimpleDayCount
-
- All Implemented Interfaces:
IDayCountConvention
public class SimpleDayCount extends Object implements IDayCountConvention
Simple implementation of the day count between two dates. Returns the absolute number of days returned by the LocalDate until method.
-
-
Constructor Summary
Constructors Constructor Description SimpleDayCount()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
dayCount(LocalDate start, LocalDate end)
Given two dates, calculates the number of days between them.
-
-
-
Method Detail
-
dayCount
public long dayCount(LocalDate start, LocalDate end)
Description copied from interface:IDayCountConvention
Given two dates, calculates the number of days between them.- Specified by:
dayCount
in interfaceIDayCountConvention
- Parameters:
start
- The start date.end
- The end date.- Returns:
- a long representing a number of days.
-
-