|
Plexus v0.13.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.phoenixst.plexus.examples.AbstractIntegerNodeGraph.EdgeImpl
protected static class AbstractIntegerNodeGraph.EdgeImpl
Protected Graph.Edge
implementation.
Constructor Summary | |
---|---|
protected |
AbstractIntegerNodeGraph.EdgeImpl(int tail,
int head,
boolean directed)
|
Method Summary | |
---|---|
boolean |
equals(Object object)
Returns whether or not some other object is equal to this one. |
Object |
getHead()
Returns the node which is the head of this Graph.Edge . |
Object |
getOtherEndpoint(Object node)
Returns the node which is at the other end of this Graph.Edge than the specified node. |
Object |
getTail()
Returns the node which is the tail of this Graph.Edge . |
Object |
getUserObject()
Returns the user object contained in this Graph.Edge . |
int |
hashCode()
Returns the hash code for this Graph.Edge . |
boolean |
isDirected()
Returns whether or not this Graph.Edge is
directed. |
void |
setUserObject(Object object)
Sets the user object contained in this Graph.Edge . |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected AbstractIntegerNodeGraph.EdgeImpl(int tail, int head, boolean directed)
Method Detail |
---|
public boolean isDirected()
Graph.Edge
Graph.Edge
is
directed.
isDirected
in interface Graph.Edge
Graph.Edge
is
directed.public Object getUserObject()
Graph.Edge
Graph.Edge
.
getUserObject
in interface Graph.Edge
Graph.Edge
.public void setUserObject(Object object)
Graph.Edge
Graph.Edge
.
setUserObject
in interface Graph.Edge
object
- the user object to replace the one in this
Graph.Edge
.public Object getTail()
Graph.Edge
Graph.Edge
.
getTail
in interface Graph.Edge
Graph.Edge
.public Object getHead()
Graph.Edge
Graph.Edge
.
getHead
in interface Graph.Edge
Graph.Edge
.public Object getOtherEndpoint(Object node)
Graph.Edge
Graph.Edge
than the specified node.
getOtherEndpoint
in interface Graph.Edge
node
- the node which is the endpoint of this
Graph.Edge
not to return.
Graph.Edge
than the specified node.public boolean equals(Object object)
Graph.Edge
Graph.Edges
only be .equals()
when they refer to the same actual edge in the graph.
Which edge this is does not change when the contained
user-defined object changes. In a multigraph, the
endpoints and contained user-defined object are generally
not sufficiently distinguishing characteristics.
Accepting the default implementation from
Object
, which uses reference equality, should
be preferred unless Graph.Edges
are lazily
created on demand.
Description copied from class: Object
equals
in interface Graph.Edge
equals
in class Object
public int hashCode()
Graph.Edge
Graph.Edge
.
Since it is mutable, the contained user-defined object
should not be used when computing the hash code.
Description copied from class: Object
hashCode
in interface Graph.Edge
hashCode
in class Object
public String toString()
toString
in class Object
|
Plexus v0.13.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |