public boolean hasSegment(long fromTime, long toTime) { Segment segment = getLastSegment(); while (segment != null) { if (segment.getLastCommitTime() < fromTime) { return false; } if (segment.getFirstVisualTime() < toTime) { return true; } segment = segment.getPreviousInTrack(); } return false; }
@Override protected Segment getPreviousSegment(Segment segment) { return segment.getPreviousInTrack(); }