|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.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 vertex| Method Detail |
|---|
public int getIndex()
Indexed
getIndex in interface Indexedpublic Vertex getVertex(int index)
Edge
getVertex in interface Edgeindex - The index, 0 or 1
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic 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 | |||||||||