/guava/guava/src/com/google/common/collect/Range.java
&& null.compareTo( upperBound) <= 0;
&& other.lowerBound.compareTo ( upperBound ) <= 0;
public boolean encloses(Range<C> other) { return lowerBound.compareTo(other.lowerBound) <= 0 && upperBound.compareTo(other.upperBound) >= 0; } public boolean isConnected(Range<C> other) { return lowerBound.compareTo(other.upperBound) <= 0 <extra_id_0> } public Range<C> intersection(Range<C> connectedRange) { int lowerCmp = lowerBound.compareTo(connectedRange.lowerBound); int upperCmp = upperBound.compareTo(connectedRange.upperBound); if (lowerCmp >= 0 && upperCmp <= 0) { return this;