- /*
- * For the start times index, the "key comparator" will compare the
- * start times as longs directly. This is the primary comparator for its
- * tree map.
- *
- * The secondary "value" comparator will check the end times first, and
- * in the event of a tie, defer to the ISegment's Comparable
- * implementation, a.k.a. its natural ordering.
- *
- * The same is done for the end times index, but swapping the first two
- * comparators instead.
- */
- fStartTimesIndex = checkNotNull(TreeMultimap.<Long, E> create(
- SegmentComparators.LONG_COMPARATOR,
- Ordering.from(SegmentComparators.INTERVAL_END_COMPARATOR).compound(Ordering.natural())));
-
- fEndTimesIndex = checkNotNull(TreeMultimap.<Long, E> create(
- SegmentComparators.LONG_COMPARATOR,
- Ordering.from(SegmentComparators.INTERVAL_START_COMPARATOR).compound(Ordering.natural())));
-
- fSize = 0;