Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-462

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • core-1.2.0
    • core-1.3.0
    • Core
    • 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

            danhaywood Daniel Keir Haywood
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: