com.vividsolutions.jts.geomgraph
Class EdgeList
java.lang.Object
com.vividsolutions.jts.geomgraph.EdgeList
public class EdgeList
extends java.lang.Object
A EdgeList is a list of Edges. It supports locating edges
that are pointwise equals to a target edge.
EdgeList
public EdgeList()
add
public void add(Edge e)
Insert an edge unless it is already in the list
addAll
public void addAll(Collection edgeColl)
findEdgeIndex
public int findEdgeIndex(Edge e)
If the edge e is already in the list, return its index.
- index, if e is already in the list
-1 otherwise
findEqualEdge
public Edge findEqualEdge(Edge e)
If there is an edge equal to e already in the list, return it.
Otherwise return null.
- equal edge, if there is one already in the list
null otherwise
get
public Edge get(int i)
getEdges
public List getEdges()
iterator
public Iterator iterator()
print
public void print(PrintStream out)