Class GridNodePositionComparator
- java.lang.Object
-
- org.hortonmachine.gears.libs.modules.GridNodePositionComparator
-
- All Implemented Interfaces:
Comparator<GridNode>
public class GridNodePositionComparator extends Object implements Comparator<GridNode>
A simple comparator to sortGridNodes left to right order.- Author:
- Andrea Antonello (www.hydrologis.com)
-
-
Constructor Summary
Constructors Constructor Description GridNodePositionComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(GridNode o1, GridNode o2)-
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
-
-
-
-
Method Detail
-
compare
public int compare(GridNode o1, GridNode o2)
- Specified by:
comparein interfaceComparator<GridNode>
-
-