Skip to content

Commit

Permalink
0005408: Added hashCode() and equals() implementation to ProcessInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-miller-jumpmind committed Aug 15, 2022
1 parent 4d228f5 commit 841be6b
Showing 1 changed file with 17 additions and 0 deletions.
Expand Up @@ -337,4 +337,21 @@ public ProcessInfo copy() {
throw new RuntimeException(e);
}
}

@Override
public int hashCode() {
return key.hashCode();
}

@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
ProcessInfo other = (ProcessInfo) obj;
return key.equals(other.getKey());
}
}

0 comments on commit 841be6b

Please sign in to comment.