add Range.overlaps(Range) method
Author: bemaceCreated Jun 26, 2015Updated Aug 31, 2026
Labelstype=additionpackage=collectstatus=researchP3
Seems very strange that the Range class doesn't have an overlaps(Range) or intersects(Range) method.
I expect it would essentially be
public boolean overlaps(Range other) {
return isConnected(other) && !intersection(other).isEmpty();
}
Source: google/guava