com.phoenixst.plexus.util
Class DefaultObjectEdge
java.lang.Object
com.phoenixst.plexus.util.DefaultEdge
com.phoenixst.plexus.util.DefaultObjectEdge
- All Implemented Interfaces:
- Graph.Edge, Serializable
public class DefaultObjectEdge
- extends DefaultEdge
A default 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.
- Since:
- 1.0
- Version:
- $Revision: 1.9 $
- Author:
- Ray A. Conner
- See Also:
- Serialized Form
DefaultObjectEdge
public DefaultObjectEdge(Object object,
Object tail,
Object head,
boolean directed)
- Creates a new
DefaultObjectEdge
.
getUserObject
public Object getUserObject()
- Description copied from interface:
Graph.Edge
- Returns the user object contained in this
Graph.Edge
.
- Specified by:
getUserObject
in interface Graph.Edge
- Overrides:
getUserObject
in class DefaultEdge
- Returns:
- the user object contained in this
Graph.Edge
.
setUserObject
public void setUserObject(Object object)
- Description copied from interface:
Graph.Edge
- Sets the user object contained in this
Graph.Edge
.
- Specified by:
setUserObject
in interface Graph.Edge
- Overrides:
setUserObject
in class DefaultEdge
- Parameters:
object
- the user object to replace the one in this
Graph.Edge
.
toString
public String toString()
- Overrides:
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.