|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IBasicPair<N extends IBasicNode<N,? extends IBasicEdge<N,?>>,E extends IBasicEdge<N,E>>
Method Summary | |
---|---|
boolean |
containsNode(N node)
Is this node contained in this end pair. |
boolean |
equals(java.lang.Object other)
Test whether a pair is equal, that is do they include the same pair of nodes. |
N |
getOtherNode(N node)
Get the other node to this one in the pair. |
boolean |
hasEnds(N endOne,
N endTwo)
Tests if this end pair is made up of these two nodes. |
int |
hashCode()
The hashCode that should given identical behaviour to equals. |
Method Detail |
---|
boolean containsNode(N node)
node
- The node to test, can be null.
boolean hasEnds(N endOne, N endTwo)
hasEnds(endOne, endTwo) == hasEnds(endTwo, endOne)
endOne
- The first node end.endTwo
- The second node end.
N getOtherNode(N node)
node
- The node to test, cannot be null.
node
.boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- the other object to compare for equality.
int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |