Details
-
Wish
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.12.1
-
None
Description
these are classical in hash calculations
public int hashCode() { int hash = 17; hash = hash * 31 + field1.hashCode(); hash = hash * 31 + field2.hashCode(); return hash; }
or
public int hashCode() { int hash = 17; hash = hash * 37 + field1.hashCode(); hash = hash * 37 + field2.hashCode(); return hash; }