A class for efficiently managing and analyzing intervals, including detecting overlaps and grouping connected intervals.