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
|
||||
public int hashCode() {
|
||||
int hashCode = 1;
|
||||
hashCode *= 13;
|
||||
int hashCode = 13;
|
||||
hashCode += name.hashCode();
|
||||
hashCode *= 17;
|
||||
hashCode += time.hashCode();
|
||||
hashCode *= 31;
|
||||
return hashCode + rank;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue