turning zero if the values are equal.</p>
<p>Returns a negative integer if this <code>Duration</code> is shorter than
<code>other</code>, or a positive integer if it is longer.</p>
<p>A negative <code>Duration</code> is always considered shorter than a positive one.</p>
<p>It is always the case that <code>duration1.compareTo(duration2) &lt; 0</code> iff
<code>(someDate + duration1).compareTo(someDate + duration2) &lt; 0</code>.</p>
    </section>
    
    <section class="summary source-code" id="source">
  