|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ed.inf.graph.impl.NodePair
public final class NodePair
Constructor Summary | |
---|---|
NodePair(Node oneNode,
Node twoNode)
|
Method Summary | |
---|---|
boolean |
containsNode(Node node)
Is this node contained in this end pair. |
boolean |
equals(java.lang.Object obj)
Test whether a pair is equal, that is do they include the same pair of nodes. |
Node |
getOneNode()
|
Node |
getOtherNode(Node node)
Get the other node of the pair to this one. |
Node |
getTwoNode()
|
boolean |
hasEnds(Node endOne,
Node endTwo)
Tests if this end pair is made up of these two nodes. |
int |
hashCode()
The hashCode that should given identical behaviour to equals. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
NodePair(Node oneNode, Node twoNode)
Method Detail |
---|
public Node getOneNode()
getOneNode
in interface IUndirectedPair<Node,Edge>
public Node getTwoNode()
getTwoNode
in interface IUndirectedPair<Node,Edge>
public boolean containsNode(Node node)
IBasicPair
containsNode
in interface IBasicPair<Node,Edge>
node
- The node to test, can be null.
public Node getOtherNode(Node node)
getOtherNode
in interface IBasicPair<Node,Edge>
node
-
public int hashCode()
IBasicPair
hashCode
in interface IBasicPair<Node,Edge>
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
IBasicPair
equals
in interface IBasicPair<Node,Edge>
equals
in class java.lang.Object
obj
- the other object to compare for equality.
public boolean hasEnds(Node endOne, Node endTwo)
IBasicPair
hasEnds(endOne, endTwo) == hasEnds(endTwo, endOne)
hasEnds
in interface IBasicPair<Node,Edge>
endOne
- The first node end.endTwo
- The second node end.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |