The existing RangeComparator class is used by Range and RangeUtils. It doesn't implement Java's Comparator, rather it compares ranges in terms of the Hayes system, taking into account each end-point value and whether closed or open.
Rename this class to RangeExtendedComparator and add a new RangeComparator for standard uses. There is already such a class within RangeUtils we we can just move it to outer level.
The existing RangeComparator class is used by Range and RangeUtils. It doesn't implement Java's Comparator, rather it compares ranges in terms of the Hayes system, taking into account each end-point value and whether closed or open.
Rename this class to RangeExtendedComparator and add a new RangeComparator for standard uses. There is already such a class within RangeUtils we we can just move it to outer level.