Overlapping interval - regard first element on cut

This commit is contained in:
AdrianLxM 2017-08-16 23:56:14 +02:00 committed by GitHub
parent 4ce173c3e9
commit 776ae3f424

View file

@ -15,7 +15,7 @@ public class OverlappingIntervals<T extends Interval> extends Intervals<T> {
boolean needToCut = false; boolean needToCut = false;
long cutTime = 0; long cutTime = 0;
for (int index = rawData.size()-1; index > 0; index--) { //begin with newest for (int index = rawData.size()-1; index >= 0; index--) { //begin with newest
Interval cur = rawData.valueAt(index); Interval cur = rawData.valueAt(index);
if (cur.isEndingEvent()){ if (cur.isEndingEvent()){
needToCut = true; needToCut = true;