Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
label
The label of the node
|
Constructor and Description |
---|
CNetNode(java.lang.String label) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(CNetNode other)
comparison by label
|
boolean |
equals(java.lang.Object o)
Compares IDs
|
java.lang.String |
getLabel() |
int |
hashCode()
Nodes with the same ID needs to have the same hash code (Java contract)
|
java.lang.String |
toString() |
public java.lang.String getLabel()
public int compareTo(CNetNode other)
compareTo
in interface java.lang.Comparable<CNetNode>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object