Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-5271

TimeDuration should implement Comparable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.8.5, 2.0-beta-2
    • 1.8.6, 2.0-beta-3
    • groovy-jdk

    Description

      Currently it is unnecessarily hard to compare TimeDurations. Calling toMilliseconds on both of them just to do simple comparisons is cumbersome. It would be easy to implement Comparable and just do the comparison there.

      Attachments

        Activity

          People

            guillaume Guillaume Sauthier
            eh Eetu Huisman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: