T
- The type of the nodes this edge connectspublic abstract class Edge<T extends Node>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private T |
nodeA
The first node of this edge.
|
private T |
nodeB
The second node of this edge.
|
Constructor and Description |
---|
Edge(T nodeA,
T nodeB)
Creates a new edge for the given nodes.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
T |
getNodeA()
Returns the first node of this edge.
|
T |
getNodeB()
Returns the second node of this edge.
|
int |
hashCode() |
public T getNodeA()
public T getNodeB()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object