|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjcommon.graph.impl.Edge<TVertex>
TVertex - Type of IVertex instances that this edge will connect.public class Edge<TVertex extends IVertex>
IEdge| Field Summary | |
|---|---|
TVertex |
from
The object we are connecting from. |
TVertex |
to
The object we are connecting to. |
| Constructor Summary | |
|---|---|
Edge(TVertex from,
TVertex to)
Create a new directed edge for a graph that defines the relationship between two graph vertices. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
TVertex |
getFrom()
Retrieves the from instance. |
TVertex |
getTo()
Retrieves the to instance. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final TVertex extends IVertex from
public final TVertex extends IVertex to
| Constructor Detail |
|---|
public Edge(TVertex from,
TVertex to)
from - The object we are connecting from.to - The object we are connecting to.| Method Detail |
|---|
public TVertex getFrom()
from instance.
getFrom in interface IEdge<TVertex extends IVertex>from instance.public TVertex getTo()
to instance.
getTo in interface IEdge<TVertex extends IVertex>to instance.public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(Object)public String toString()
toString in class ObjectObject.toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||