/** Are both ranges disjoint? I.e., no overlap? */ public boolean disjoint(Interval other) { return startsBeforeDisjoint(other) || startsAfterDisjoint(other); }
Replacement previous = sorted.get(i - 1); Replacement current = sorted.get(i); if (!previous.interval.startsBeforeDisjoint(current.interval)) { throw new RuntimeException("Overlapping intervals: " + previous + " " + current);
if ( addition.startsBeforeDisjoint(r) ) {
Interval theirs = theirIntervals.get(j); if ( mine.startsBeforeDisjoint(theirs) ) { else if ( theirs.startsBeforeDisjoint(mine) ) {
/** Are both ranges disjoint? I.e., no overlap? */ public boolean disjoint(Interval other) { return startsBeforeDisjoint(other) || startsAfterDisjoint(other); }
/** Are both ranges disjoint? I.e., no overlap? */ public boolean disjoint(Interval other) { return startsBeforeDisjoint(other) || startsAfterDisjoint(other); }
/** Are both ranges disjoint? I.e., no overlap? */ public boolean disjoint(Interval other) { return startsBeforeDisjoint(other) || startsAfterDisjoint(other); }
/** Are both ranges disjoint? I.e., no overlap? */ public boolean disjoint(Interval other) { return startsBeforeDisjoint(other) || startsAfterDisjoint(other); }
Replacement previous = sorted.get(i - 1); Replacement current = sorted.get(i); if (!previous.interval.startsBeforeDisjoint(current.interval)) { throw new RuntimeException("Overlapping intervals: " + previous + " " + current);
if ( addition.startsBeforeDisjoint(r) ) {
if ( addition.startsBeforeDisjoint(r) ) {
if ( addition.startsBeforeDisjoint(r) ) {
if ( addition.startsBeforeDisjoint(r) ) {
Interval theirs = theirIntervals.get(j); if ( mine.startsBeforeDisjoint(theirs) ) { else if ( theirs.startsBeforeDisjoint(mine) ) {
Interval theirs = theirIntervals.get(j); if ( mine.startsBeforeDisjoint(theirs) ) { else if ( theirs.startsBeforeDisjoint(mine) ) {
Interval theirs = theirIntervals.get(j); if ( mine.startsBeforeDisjoint(theirs) ) { else if ( theirs.startsBeforeDisjoint(mine) ) {
Interval theirs = theirIntervals.get(j); if ( mine.startsBeforeDisjoint(theirs) ) { else if ( theirs.startsBeforeDisjoint(mine) ) {