Plexus v0.13.1

com.phoenixst.plexus.util
Class DefaultObjectEdge

java.lang.Object
  extended by com.phoenixst.plexus.util.DefaultEdge
      extended by 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

Constructor Summary
DefaultObjectEdge(Object object, Object tail, Object head, boolean directed)
          Creates a new DefaultObjectEdge.
 
Method Summary
 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()
           
 
Methods inherited from class com.phoenixst.plexus.util.DefaultEdge
getHead, getOtherEndpoint, getTail, isDirected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.phoenixst.plexus.Graph.Edge
equals, hashCode
 

Constructor Detail

DefaultObjectEdge

public DefaultObjectEdge(Object object,
                         Object tail,
                         Object head,
                         boolean directed)
Creates a new DefaultObjectEdge.

Method Detail

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

Plexus v0.13.1

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.