Implement equals/hashCode
@@ -405,6 +405,18 @@ public class Node {
return name;
}
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ Event event = (Event) o;
+ return at.equals(event.at) && agent.equals(event.agent) && name.equals(event.name);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(at, agent, name);
+ }
}
public static Builder builder() {
