code: @Override
      public int compareTo(Duration otherDuration) {
          int cmp = Long.compare(seconds, otherDuration.seconds);
          if (cmp != 0) {
              return cmp;
          }
          return nanos - otherDuration.nanos;
      }
docs: Compares this duration to the specified {@code Duration}.
  <p>
  The comparison is based on the total length of the durations.
  It is "consistent with equals", as defined by {@link Comparable}.
  
  @param otherDuration  the other duration to compare to, not null
  @return the comparator value, negative if less, positive if greater