|
|||||||||
| Home >> All >> com >> phoenixst >> [ plexus overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.phoenixst.plexus
Class DefaultObjectEdge

java.lang.Objectcom.phoenixst.plexus.DefaultEdge
com.phoenixst.plexus.DefaultObjectEdge
- All Implemented Interfaces:
- Graph.Edge, java.io.Serializable
- public class DefaultObjectEdge
- extends DefaultEdge
A default Graph.Edge implementation. The equals() 55 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.1 $
| Field Summary | |
protected java.lang.Object |
object
The user-defined object contained in this Edge. |
| Fields inherited from class com.phoenixst.plexus.DefaultEdge |
head, isDirected, tail |
| Constructor Summary | |
DefaultObjectEdge(java.lang.Object object,
java.lang.Object tail,
java.lang.Object head,
boolean isDirected)
Creates a new DefaultObjectEdge. |
|
| Method Summary | |
java.lang.Object |
getUserObject()
Returns the user object contained in this Edge. |
void |
setUserObject(java.lang.Object object)
Sets the user object contained in this Edge. |
java.lang.String |
toString()
Convert this Object to a human-readable String. |
| Methods inherited from class com.phoenixst.plexus.DefaultEdge |
equals, 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 |
| Field Detail |
object
protected java.lang.Object object
- The user-defined object contained in this
Edge.
| Constructor Detail |
DefaultObjectEdge
public DefaultObjectEdge(java.lang.Object object, java.lang.Object tail, java.lang.Object head, boolean isDirected)
- Creates a new
DefaultObjectEdge.
| Method Detail |
getUserObject
public java.lang.Object getUserObject()
- Description copied from interface:
Graph.Edge - Returns the user object contained in this
Edge.- Specified by:
getUserObjectin interfaceGraph.Edge- Overrides:
getUserObjectin classDefaultEdge
setUserObject
public void setUserObject(java.lang.Object object)
- Description copied from interface:
Graph.Edge - Sets the user object contained in this
Edge.- Specified by:
setUserObjectin interfaceGraph.Edge- Overrides:
setUserObjectin classDefaultEdge
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).- Overrides:
toStringin classDefaultEdge
|
|||||||||
| Home >> All >> com >> phoenixst >> [ plexus overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC