Package qupath.lib.roi
Class DefaultROIComparator
java.lang.Object
qupath.lib.roi.DefaultROIComparator
- All Implemented Interfaces:
Comparator<ROI>
Default comparator to enable ROIs to be sorted in a more predictable manner.
The aim is to help sorted lists to sort first on ROI location (time, z, channel, y coordinate, then x) and afterwards on ROI type.
- Author:
- Pete Bankhead
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
static Comparator
<ROI> Get a static instance of this comparator, to avoid needing to construct it.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
DefaultROIComparator
public DefaultROIComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<ROI>
-
getInstance
Get a static instance of this comparator, to avoid needing to construct it.- Returns:
-