Skip to content

Commit

Permalink
Add equals and hash to AnalyzeParams
Browse files Browse the repository at this point in the history
  • Loading branch information
karoliineh committed Jan 12, 2024
1 parent f767b0f commit e2a99c3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/main/java/api/messages/params/AnalyzeParams.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package api.messages.params;

import java.util.Objects;

public class AnalyzeParams {

boolean reset;
Expand All @@ -8,4 +10,16 @@ public AnalyzeParams(boolean reset) {
this.reset = reset;
}

@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
AnalyzeParams that = (AnalyzeParams) o;
return reset == that.reset;
}

@Override
public int hashCode() {
return Objects.hash(reset);
}
}

0 comments on commit e2a99c3

Please sign in to comment.