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.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintstatic Comparator<ROI> Get a static instance of this comparator, to avoid needing to construct it.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparatorequals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
- 
Constructor Details- 
DefaultROIComparatorpublic DefaultROIComparator()
 
- 
- 
Method Details- 
compare- Specified by:
- comparein interface- Comparator<ROI>
 
- 
getInstanceGet a static instance of this comparator, to avoid needing to construct it.- Returns:
 
 
-