|
/** |
|
* Calculate the hashCode for the data, The hashcode is generated by |
|
* bitshifting z by ZTBITSPLIT bits and adding t. |
|
* |
|
* @return See above. |
|
*/ |
|
public int hashCode() |
|
{ |
|
return z<<ZTBITSPLIT+t; |
|
} |
The comments at line 113-114 say the hashcode is generated by bitshifting z by ZTBITSPLIT bits and adding t.
To do the bit shifting first, I believe parenthesis are needed:
return (z<<ZTBITSPLIT) + t;
omero-gateway-java/src/main/java/omero/gateway/model/ROICoordinate.java
Lines 112 to 121 in 750cc1d
The comments at line 113-114 say the hashcode is generated by bitshifting z by ZTBITSPLIT bits and adding t.
To do the bit shifting first, I believe parenthesis are needed: