Constructor
new Interval(low, high)
Accept two comparable values and creates new instance of interval
Predicate Interval.comparable_less(low, high) supposed to return true on these values
- Source:
Parameters:
Name | Type | Description |
---|---|---|
low |
||
high |
Members
Methods
(static) comparable_less_than(val1, val2) → {boolean}
Predicate returns true if first value less than second value
- Source:
Parameters:
Name | Type | Description |
---|---|---|
val1 |
||
val2 |
Returns:
- Type:
-
boolean
(static) comparable_max(interval1, interval2) → {Interval}
Function returns maximum between two comparable values
- Source:
Parameters:
Name | Type | Description |
---|---|---|
interval1 |
||
interval2 |
Returns:
- Type:
-
Interval
equal_to(other_interval) → {boolean}
Predicate returns true is this interval equals to other interval
- Source:
Parameters:
Name | Type | Description |
---|---|---|
other_interval |
Returns:
- Type:
-
boolean
intersect(other_interval) → {boolean}
Predicate returns true if this interval intersects other interval
- Source:
Parameters:
Name | Type | Description |
---|---|---|
other_interval |
Returns:
- Type:
-
boolean
less_than(other_interval) → {boolean}
Predicate returns true is this interval less than other interval
- Source:
Parameters:
Name | Type | Description |
---|---|---|
other_interval |
Returns:
- Type:
-
boolean
merge(interval) → {Interval}
Returns new interval merged with other interval
- Source:
Parameters:
Name | Type | Description |
---|---|---|
interval |
Interval
|
Other interval to merge with |
Returns:
- Type:
-
Interval
not_intersect(other_interval) → {boolean}
Predicate returns true if this interval does not intersect other interval
- Source:
Parameters:
Name | Type | Description |
---|---|---|
other_interval |
Returns:
- Type:
-
boolean