public class HorizontalComparator extends Object implements Comparator<Region>
Constructor and Description |
---|
HorizontalComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Region region1,
Region region2)
Compares the X-Position of two
Region objects. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(Region region1, Region region2)
Region
objects.compare
in interface Comparator<Region>
region1
- The first Region
objectregion2
- The second Region
object