public int compareTo( Toffs other ) {int diff = getStartOffset() - other.getStartOffset();if ( diff != 0 ) {return diff;}return getEndOffset() - other.getEndOffset();}

public virtual int CompareTo(Toffs other){int diff = StartOffset - other.StartOffset;if (diff != 0){return diff;}return EndOffset - other.EndOffset;}
