Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-462

Improve ValueTypeContractTestAbstract to also test for value types that implement Comparable.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: core-1.2.0
    • Fix Version/s: core-1.3.0
    • Component/s: Core
    • Labels:
      None

      Description

      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)

        Attachments

          Activity

            People

            • Assignee:
              danhaywood Dan Haywood
              Reporter:
              danhaywood Dan Haywood
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: