You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Dave Brosius (JIRA)" <ji...@apache.org> on 2011/07/02 23:30:21 UTC

[jira] [Updated] (MATH-610) [patch] objects that use compareTo should have equals as well

     [ https://issues.apache.org/jira/browse/MATH-610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dave Brosius updated MATH-610:
------------------------------

    Attachment: equals.diff

> [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
>    Affects Versions: 3.0
>            Reporter: Dave Brosius
>            Priority: Trivial
>             Fix For: 3.0
>
>         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.
For more information on JIRA, see: http://www.atlassian.com/software/jira