Fix .equals for Node.
This commit is contained in:
джерело
7dcbdcb408
коміт
f2bdc462a3
1 змінених файлів з 3 додано та 0 видалено
|
@ -95,6 +95,9 @@ public class Node implements Comparable<Node> {
|
|||
|
||||
@Override
|
||||
public boolean equals(Object other) {
|
||||
if (other == null) {
|
||||
return false;
|
||||
}
|
||||
if (other instanceof Node) {
|
||||
return getId() == ((Node) other).getId();
|
||||
}
|
||||
|
|
Завантаження…
Посилання в новій задачі