Dan Haywood created ISIS-462:
--------------------------------

             Summary: 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

Reply via email to