Class 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 Detail

      • SimpleDayCount

        public SimpleDayCount()
    • 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 interface IDayCountConvention
        Parameters:
        start - The start date.
        end - The end date.
        Returns:
        a long representing a number of days.