public class DefaultObjectEdge extends DefaultEdge
Graph.Edge implementation.
The equals() method is inherited from
Object and uses reference equality. This class
should only be used by Graphs which create edges once
and store them.| Constructor and Description |
|---|
DefaultObjectEdge(Object object,
Object tail,
Object head,
boolean directed)
Creates a new
DefaultObjectEdge. |
| Modifier and Type | Method and Description |
|---|---|
Object |
getUserObject()
Returns the user object contained in this
Graph.Edge. |
void |
setUserObject(Object object)
Sets the user object contained in this
Graph.Edge. |
String |
toString() |
getHead, getOtherEndpoint, getTail, isDirectedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCodepublic Object getUserObject()
Graph.EdgeGraph.Edge.getUserObject in interface Graph.EdgegetUserObject in class DefaultEdgeGraph.Edge.public void setUserObject(Object object)
Graph.EdgeGraph.Edge.setUserObject in interface Graph.EdgesetUserObject in class DefaultEdgeobject - the user object to replace the one in this
Graph.Edge.public String toString()
toString in class DefaultEdgeSee the Plexus project home, hosted by SourceForge.
Copyright ? 1994-2006, by Phoenix Software Technologists, Inc. and others. All Rights Reserved. Use is subject to license terms.