Nodes are no longer comparable (confusion with Label comparison). Predefined ArcInspectors easier to get.
This commit is contained in:
@@ -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());
|
||||
// }
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user