|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--fcmodeler.jsomap.Edge
A simple implementation of an edge in a graph. An edge consists of two objects: the tail and the head.
| Constructor Summary | |
Edge(java.lang.Object tail,
java.lang.Object head)
Creates a new Edge using the specfied tail and head nodes. |
|
| Method Summary | |
int |
compareTo(java.lang.Object obj)
Compares the specified object to this edge. |
boolean |
equals(java.lang.Object obj)
Returns true if the specified object is an edge and its tail and head nodes are equal to this
edge's tail and head nodes. |
java.lang.Object |
getHead()
Returns the head node of this edge. |
java.lang.Object |
getTail()
Returns the tail node of this edge. |
int |
hashCode()
Returns the hash code of this edge. |
java.lang.String |
toString()
Returns the string representation of this edge. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Edge(java.lang.Object tail,
java.lang.Object head)
Edge using the specfied tail and head nodes.tail - the tail node.head - the head node.| Method Detail |
public int compareTo(java.lang.Object obj)
compareTo in interface java.lang.Comparableobj - the object to compare to this edge.public boolean equals(java.lang.Object obj)
true if the specified object is an edge and its tail and head nodes are equal to this
edge's tail and head nodes.equals in class java.lang.Objectobj - the object to test for equality with this edge.true if the specified object is equal to this edge.public java.lang.Object getHead()
public java.lang.Object getTail()
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||