Range<T extends Comparable> class
Anything with comparable start and end.
Allows to compare ranges to see if they overlap or entirely go one after another.
- Available Extensions
Constructors
- Range(T start, T end)
- Creates an instance.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
after<
T extends Comparable> (Range< T> a, Range<T> b) → bool -
Returns if
a
starts afterb
ends. -
afterExclusive<
T extends Comparable> (Range< T> a, Range<T> b) → bool -
Returns if
a
starts after or whereb
ends. -
afterInclusive<
T extends Comparable> (Range< T> a, Range<T> b) → bool -
Returns if
a
starts afterb
ends. -
afterOrTouching<
T extends Comparable> (Range< T> a, Range<T> b) → bool -
Returns if
a
starts after or whereb
ends. -
before<
T extends Comparable> (Range< T> a, Range<T> b) → bool -
Returns if
a
ends beforeb
starts. -
beforeExclusive<
T extends Comparable> (Range< T> a, Range<T> b) → bool -
Returns if
a
ends before or whereb
starts. -
beforeInclusive<
T extends Comparable> (Range< T> a, Range<T> b) → bool -
Returns if
a
ends beforeb
starts. -
beforeOrTouching<
T extends Comparable> (Range< T> a, Range<T> b) → bool -
Returns if
a
ends before or whereb
starts. -
overlap<
T extends Comparable> (Range< T> a, Range<T> b) → bool - Returns if the ranges overlap deeper than their limiting points.
-
overlapExclusive<
T extends Comparable> (Range< T> a, Range<T> b) → bool - Returns if the ranges overlap or touch one another.
-
overlapInclusive<
T extends Comparable> (Range< T> a, Range<T> b) → bool - Returns if the ranges overlap deeper than their limiting points.
-
overlapOrTouch<
T extends Comparable> (Range< T> a, Range<T> b) → bool - Returns if the ranges overlap or touch one another.