EventPosition

Represents a position of an event within a sequence, such as the start, middle, or end. This class encapsulates the logic for determining the position based on the index in a list.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The name of the event position.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Checks if this instance is equal to another object. Two instances of EventPosition are considered equal if they have the same name.

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

Returns a hash code value for the object, which is consistent with the definition of equality for the class. This supports the use in hash tables, like those provided by HashMap.

Link copied to clipboard

A helper function to check if the current position is not the end position. This can be useful for determining layout or drawing logic based on the position of an event.