Fix .equals for Node.
這個提交存在於:
父節點
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();
|
||||
}
|
||||
|
|
載入中…
新增問題並參考