BusinessCalendar

open class BusinessCalendar(val holidayDates: SortedSet<LocalDate>)

A business calendar performs date calculations that take into account national holidays and weekends. This is a typical feature of financial contracts, in which a business may not want a payment event to fall on a day when no staff are around to handle problems.

Constructors

Link copied to clipboard
constructor(holidayDates: SortedSet<LocalDate>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun applyRollConvention(testDate: LocalDate, dateRollConvention: DateRollConvention): LocalDate
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open fun isWorkingDay(date: LocalDate): Boolean
Link copied to clipboard

Returns a date which is the inbound date plus/minus a given number of business days. TODO: Make more efficient if necessary

Link copied to clipboard
operator fun plus(other: BusinessCalendar): BusinessCalendar
Link copied to clipboard
open override fun toString(): String