RangeExtension<T extends Comparable> extension

An extension to hold methods so you can implement this class instead of extending it.

on

Methods

isAfter(Range<T> other) bool
Returns if this starts after other ends.
isAfterOrTouching(Range<T> other) bool
Returns if this starts after or where other ends.
isBefore(Range<T> other) bool
Returns if this ends before other starts.
isBeforeOrTouching(Range<T> other) bool
Returns if this ends before or where other starts.
isOverlapping(Range<T> other) bool
Returns if the ranges overlap deeper than their limiting points.
isOverlappingOrTouching(Range<T> other) bool
Returns if the ranges overlap or touch one another.