This method of the IIntRangeComparator Interface compares ranges. It is called by IntRanges.compare.
int compareRanges(IntRanges ranges1, int i1, IntRanges ranges2, int i2);
Returns one of the values shown in the following table.
OVERLAP | The sets of integers are not equal but have a common set of integers. |
DISJOINT | The sets of integers have no integers in common. |
SUBSET | The second set of integers includes all the integers in the first set, plus some integers that are not in the first set. |
EQUAL | The sets of integers are identical. |
SUPERSET | The first set of integers includes all the integers in the second set, plus some integers that are not in the second set. |
ranges1 | The first set of ranges to compare. |
i1 | The index in ranges1 of the first range to compare. |
ranges2 | The second set of ranges to compare. |
i2 | The index in ranges2 of the second range to compare. |