hashcode
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
package util.ast;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
public class AST {
|
||||
|
||||
private final Node root;
|
||||
@ -25,4 +27,9 @@ public class AST {
|
||||
public String toString() {
|
||||
return this.root.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(this.root);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user