compareEnds

fun compareEnds(other: Interval): Int

Compare the end times of this and another interval.

Return

-1 if this interval ends first, 1 if the other interval ends first, or 0 if the two intervals end at the same time.

If the end inclusivities are not equal, the exclusive end is considered to be first.

Assumes neither interval is empty.

Parameters

other

the interval to compare to