Exclude time from hash

This commit is contained in:
Manuel Thalmann 2022-11-15 15:51:22 +01:00
parent e9d1148cd0
commit ff0c3f0b98

View file

@ -62,12 +62,9 @@ public class MyCompetitor implements Comparable<MyCompetitor> {
@Override
public int hashCode() {
int hashCode = 1;
hashCode *= 13;
int hashCode = 13;
hashCode += name.hashCode();
hashCode *= 17;
hashCode += time.hashCode();
hashCode *= 31;
return hashCode + rank;
}