mbedward / jaitools

Raster image processing for Java developers
17 stars 15 forks source link

Range comparators #212

Closed mbedward closed 11 years ago

mbedward commented 11 years ago

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.

mbedward commented 11 years ago

Done. Included with version 1.3.1