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.

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

                Created:
                Updated:
                Resolved: