Connection

data class Connection<FROM : IntervalLike<FROM>, TO : IntervalLike<TO>>(val interval: Interval, val from: FROM?, val to: TO?) : IntervalLike<Connection<FROM, TO>>

Represents a pairing of two other IntervalLike objects.

Constructors

Link copied to clipboard
constructor(interval: Interval, from: FROM?, to: TO?)

Properties

Link copied to clipboard

Object at the start of the connection.

Link copied to clipboard
open override val interval: Interval

The interval this occupies on the timeline.

Link copied to clipboard
val to: TO?

Object at the end of the connection.

Functions

Link copied to clipboard
open override fun withNewInterval(i: Interval): Connection<FROM, TO>

Creates a new object that is identical except that it exists on a different interval.