[ 
https://issues.apache.org/jira/browse/MATH-610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13430284#comment-13430284
 ] 

Sebb commented on MATH-610:
---------------------------

Updated source to point to this discussion:

URL: http://svn.apache.org/viewvc?rev=1370149&view=rev
Log:
Add comment as to why equals() and hashCode() are not implemented

Modified:
    
commons/proper/math/trunk/src/main/java/org/apache/commons/math3/stat/ranking/NaturalRanking.java
                
> [patch] objects that use compareTo should have equals as well
> -------------------------------------------------------------
>
>                 Key: MATH-610
>                 URL: https://issues.apache.org/jira/browse/MATH-610
>             Project: Commons Math
>          Issue Type: Improvement
>            Reporter: Dave Brosius
>            Priority: Trivial
>         Attachments: equals.diff
>
>
> NaturalRanking implements compareTo. Code that implements compareTo should 
> also implement equals, and those that implement equals should implement 
> hashCode. This patch does this.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to