Package org.locationtech.jts.geomgraph
Class EdgeList
java.lang.Object
org.locationtech.jts.geomgraph.EdgeList
A EdgeList is a list of Edges. It supports locating edges
that are pointwise equals to a target edge.
- Version:
- 1.7
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Insert an edge unless it is already in the listvoid
addAll
(Collection edgeColl) int
If the edge e is already in the list, return its index.If there is an edge equal to e already in the list, return it.get
(int i) getEdges()
iterator()
void
print
(PrintStream out)
-
Constructor Details
-
EdgeList
public EdgeList()
-
-
Method Details
-
add
Insert an edge unless it is already in the list- Parameters:
e
- Edge
-
addAll
-
getEdges
-
findEqualEdge
If there is an edge equal to e already in the list, return it. Otherwise return null.- Parameters:
e
- Edge- Returns:
- equal edge, if there is one already in the list null otherwise
-
iterator
-
get
-
findEdgeIndex
If the edge e is already in the list, return its index.- Parameters:
e
- Edge- Returns:
- index, if e is already in the list -1 otherwise
-
print
-