TreeSetEventCalendar

This class provides an event calendar by using a tree set to hold the underlying events.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val isEmpty: Boolean

Checks to see if the calendar is empty

Link copied to clipboard

Checks to see if the calendar is not empty

Functions

Link copied to clipboard
open override fun add(event: KSLEvent<*>)

The add method will place the provided JSLEvent into the underlying data structure ensuring the ordering of the events to be processed

Link copied to clipboard
open fun cancel(event: KSLEvent<*>)

Cancels the supplied JSLEvent in the calendar. Canceling does not remove the event from the data structure. It simply indicates that the scheduled event must not be executed.

Link copied to clipboard
open override fun clear()

Clears or cancels every event in the data structure. Removes all JSLEvents from the data structure.

Link copied to clipboard
open override fun nextEvent(): KSLEvent<*>?

Returns the next JSLEvent to be executed. The event is removed from the calendar if it exists

Link copied to clipboard
open override fun peekNext(): KSLEvent<*>?

Peeks at the next event without removing it

Link copied to clipboard
open override fun size(): Int

Returns the number of events in the calendar

Link copied to clipboard
open override fun toString(): String