BaseIntervalSet(List<Interval> items) { for (var value in items) { this._add(value); } this._intervals.sort(); }