You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Dan Haywood (JIRA)" <ji...@apache.org> on 2013/07/11 01:39:48 UTC
[jira] [Resolved] (ISIS-462) Improve ValueTypeContractTestAbstract
to also test for value types that implement Comparable.
[ https://issues.apache.org/jira/browse/ISIS-462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Haywood resolved ISIS-462.
------------------------------
Resolution: Fixed
> Improve ValueTypeContractTestAbstract to also test for value types that implement Comparable.
> ---------------------------------------------------------------------------------------------
>
> Key: ISIS-462
> URL: https://issues.apache.org/jira/browse/ISIS-462
> Project: Isis
> Issue Type: Improvement
> Components: Core
> Affects Versions: core-1.2.0
> Reporter: Dan Haywood
> Assignee: Dan Haywood
> Priority: Minor
> Fix For: core-1.3.0
>
>
> Although not required, it is highly advisable that if two objects a and b are equal (a.equals(b) == true), then if their type implements Comparable then a.compareTo(b) == 0.
> Conversely, if a.equals(b) == false, then a.compareTo(b) != 0, and a.compareTo(b) = -b.compareTo(a)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira