Exclude time from hash
This commit is contained in:
parent
e9d1148cd0
commit
ff0c3f0b98
1 changed files with 1 additions and 4 deletions
|
@ -62,12 +62,9 @@ public class MyCompetitor implements Comparable<MyCompetitor> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
int hashCode = 1;
|
int hashCode = 13;
|
||||||
hashCode *= 13;
|
|
||||||
hashCode += name.hashCode();
|
hashCode += name.hashCode();
|
||||||
hashCode *= 17;
|
hashCode *= 17;
|
||||||
hashCode += time.hashCode();
|
|
||||||
hashCode *= 31;
|
|
||||||
return hashCode + rank;
|
return hashCode + rank;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue