code: public Interval intervalTo(TrieNode toNode) {
      return new Interval(toNode.getCursorIndex() - this.getCursorIndex(),
        toNode.getCursorCount(), this.getCursorCount());
    }
docs: Interval to interval.
  
  @param toNode the to node
  @return the interval