|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.javagl.simplemesh.impl.DefaultEdge
public class DefaultEdge
Default implementation of an Edge
. Note that comparing instances
of such edges does neither respect the order of the vertices, nor the
index of the edge. So an edge with vertices (A,B) and index M will be
considered to be equal to an edge with vertices (B,A) and index N.
Constructor Summary | |
---|---|
DefaultEdge(int index,
Vertex v0,
Vertex v1)
Creates a new edge with the given index and vertices |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
int |
getIndex()
Returns the index of this object |
Vertex |
getVertex(int index)
Returns the specified vertex |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultEdge(int index, Vertex v0, Vertex v1)
index
- The indexv0
- The first vertexv1
- The second vertexMethod Detail |
---|
public int getIndex()
Indexed
getIndex
in interface Indexed
public Vertex getVertex(int index)
Edge
getVertex
in interface Edge
index
- The index, 0 or 1
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |