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, isDirected
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode
public Object getUserObject()
Graph.Edge
Graph.Edge
.getUserObject
in interface Graph.Edge
getUserObject
in class DefaultEdge
Graph.Edge
.public void setUserObject(Object object)
Graph.Edge
Graph.Edge
.setUserObject
in interface Graph.Edge
setUserObject
in class DefaultEdge
object
- the user object to replace the one in this
Graph.Edge
.public String toString()
toString
in class DefaultEdge
See 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.