Class QuadEdgeComparator
- java.lang.Object
-
- org.matsim.core.network.algorithms.intersectionSimplifier.containers.QuadEdgeComparator
-
- All Implemented Interfaces:
Comparator<org.locationtech.jts.triangulate.quadedge.QuadEdge>
public class QuadEdgeComparator extends Object implements Comparator<org.locationtech.jts.triangulate.quadedge.QuadEdge>
-
-
Constructor Summary
Constructors Constructor Description QuadEdgeComparator(Map<org.locationtech.jts.triangulate.quadedge.QuadEdge,Double> map)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(org.locationtech.jts.triangulate.quadedge.QuadEdge qeA, org.locationtech.jts.triangulate.quadedge.QuadEdge qeB)
Method of comparison.-
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 Detail
-
QuadEdgeComparator
public QuadEdgeComparator(Map<org.locationtech.jts.triangulate.quadedge.QuadEdge,Double> map)
Constructor.- Parameters:
map
- map containing QuadEdge and Double
-
-
Method Detail
-
compare
public int compare(org.locationtech.jts.triangulate.quadedge.QuadEdge qeA, org.locationtech.jts.triangulate.quadedge.QuadEdge qeB)
Method of comparison. Ranks the QuadEdge in descending order.- Specified by:
compare
in interfaceComparator<org.locationtech.jts.triangulate.quadedge.QuadEdge>
- Parameters:
qeA
- quad edge to compareqeB
- quad edge to compare- Returns:
- 1 if double value associated to qeA < double value associated to qeB, 0 if values are equals, -1 otherwise
-
-