You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2013/07/11 01:35:48 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=13705231#comment-13705231 ] 

ASF subversion and git services commented on ISIS-462:
------------------------------------------------------

Commit 7fc529930b148b8911cb8b216af7850365b0edec in branch refs/heads/master from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=7fc5299 ]

ISIS-462: enhance ValueTypeContractTestAbstract...
... for Comparable
... also updating commented out sections in example app

                
> 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