NoOpEventProvider

No-op provider. Use as a default when an app wants the event-aware APIs but has not wired a data source yet. Behaves as if nothing is ever named and nothing ever closes.

Functions

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

Whether the institution is shut on date, which is what the working-day helpers count by.

Link copied to clipboard
open override fun events(year: Int): Set<NepaliCalendarEvent>

Everything named in year, Bikram Sambat. An empty set is a valid answer.

Link copied to clipboard

A view of this provider carrying only the entries predicate accepts, for narrowing a shared list to what one screen cares about: filtered { it.kind == NepaliEventKind.GovernmentPublic }.

Link copied to clipboard

A provider reporting everything either side reports, which is how a national list and an institution's own list are put together.