aherbert commented on PR #227:
URL: https://github.com/apache/commons-geometry/pull/227#issuecomment-1895461155

   I would use `int Double.hashCode(double)` which effectively does the same 
thing but does not require as many statements, e.g.
   ```java
       public int hashCode() {
           if (isNaN()) {
               return 642;
           }
           int result = Double.hashCode(x);
           result = 31 * result + Double.hashCode(y);
           result = 31 * result + Double.hashCode(z);
           return result;
       }
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to