public int getTo(int i) {
        return childTrees.get(i).getTo();
    }
Returns the character index where this {@link SpanNode} ends (exclusive), i.e.&nbsp;the greatest {@link com.yahoo.document.annotation.SpanNode#getTo()} of all children in subtree i.

@param i the index of the subtree to use
@return the greatest getTo() of all children, or -1 if this SpanList has no children in subtree i.
@throws IndexOutOfBoundsException if this AlternateSpanList has no subtree i
document/src/main/java/com/yahoo/document/annotation/AlternateSpanList.java