Nodes are no longer comparable (confusion with Label comparison). Predefined ArcInspectors easier to get.

This commit is contained in:
Le Botlan Didier
2024-03-22 17:07:18 +01:00
parent 723b8ce660
commit 32f99dba49
4 changed files with 144 additions and 166 deletions

View File

@@ -19,7 +19,7 @@ import java.util.List;
* </p>
*
*/
public final class Node implements Comparable<Node> {
public final class Node { //implements Comparable<Node> {
/**
* <p>
@@ -144,6 +144,7 @@ public final class Node implements Comparable<Node> {
return false;
}
// Do we really need to compare nodes ? Confusion with Label comparisons.
/**
* Compare the ID of this node with the ID of the given node.
*
@@ -151,9 +152,9 @@ public final class Node implements Comparable<Node> {
*
* @see java.lang.Comparable#compareTo(java.lang.Object)
*/
@Override
public int compareTo(Node other) {
return Integer.compare(getId(), other.getId());
}
// @Override
// public int compareTo(Node other) {
// return Integer.compare(getId(), other.getId());
// }
}