Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8310033

Clarify return value of Java Time compareTo methods

XMLWordPrintable

    • b09
    • Verified

        The description of java.util.Instant.compareTo(Instant) is not clear that a negative value is "before", zero is equal, and positive is "after".

        Other java.time classes also describe the compareTo result as the comparator value and do not mention zero.

              rriggs Roger Riggs
              rriggs Roger Riggs
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: