-
Notifications
You must be signed in to change notification settings - Fork 11.2k
add Range.overlaps(Range) method #2094
Open
Description
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();
}