Returns true if there exists a (possibly empty) range which is plain #encloses enclosed by both this range and other. For example, [2, 4) and [5, 7) are not connected [2, 4) and [3, 5) are connected, because both enclose {@code
(Range<C> other)
| 563 | |
| 564 | |
| 565 | public boolean isConnected(Range<C> other) { |
| 566 | return lowerBound.compareTo(other.upperBound) <= 0 |
| 567 | && other.lowerBound.compareTo(upperBound) <= 0; |
| 568 | } |
| 569 | |
| 570 | /** |
| 571 | * Returns the maximal range {@linkplain #encloses enclosed} by both this range and {@code |
no test coverage detected