MCPcopy Create free account
hub / github.com/antlr/codebuff / isConnected

Method isConnected

output/java_guava/1.4.18/Range.java:565–568  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 15

intersectsMethod · 0.45
subMapMethod · 0.45
subMapMethod · 0.45
subMapMethod · 0.45
removeMethod · 0.45
subRangeSetMethod · 0.45
removeMethod · 0.45
subRangeMapMethod · 0.45
getMethod · 0.45
putMethod · 0.45
subRangeMapMethod · 0.45

Calls 1

compareToMethod · 0.45

Tested by

no test coverage detected