code: public boolean ends(final Interval<C> that) {
          checkNotNull(this.range, that.range);
          return this.dimension == that.dimension &&
                 this.range.upperEndpoint().compareTo(that.range.upperEndpoint()) == 0 &&
                 this.range.lowerEndpoint().compareTo(that.range.lowerEndpoint()) > 0;
      }
docs: Test if an interval ends another.
  @param that interval
  @return true if the intervals share a common upper endpoint (end) and
  this lower endpoint is greater than that
  @see #starts(org.nmdp.ngs.fca.Interval)
  @see <a href="https://en.wikipedia.org/wiki/Allen%27s_interval_algebra">
  Allen's interval algebra</a>