NoOpHolidayProvider

No-op provider. Use as a default when the consumer wants the holiday-aware APIs but has not (yet) wired a real data source. Behaves as if no day is a holiday.

Functions

Link copied to clipboard
open override fun holidays(year: Int): Set<HolidayEntry>

All holidays for year, BS. Empty set is a valid answer (no holidays / out of range).

Link copied to clipboard
open override fun isHoliday(date: SimpleDate): Boolean

Convenience - true if any entry returned by holidays for date.year falls on date.