[
https://issues.apache.org/jira/browse/ISIS-462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dan Haywood closed ISIS-462.
----------------------------
> 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 was sent by Atlassian JIRA
(v6.1#6144)