@Override
    public int getLength() {
        return getTo() - getFrom();
    }
Returns the length of this span, i.e.&nbsp;getFrom() - getTo().

@return the length of this span
document/src/main/java/com/yahoo/document/annotation/SpanList.java