Fix .equals for Node.
Šī revīzija ir iekļauta:
vecāks
7dcbdcb408
revīzija
f2bdc462a3
1 mainīti faili ar 3 papildinājumiem un 0 dzēšanām
|
|
@ -95,6 +95,9 @@ public class Node implements Comparable<Node> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object other) {
|
public boolean equals(Object other) {
|
||||||
|
if (other == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (other instanceof Node) {
|
if (other instanceof Node) {
|
||||||
return getId() == ((Node) other).getId();
|
return getId() == ((Node) other).getId();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Notiek ielāde…
Atsaukties uz šo jaunā problēmā