question: public void removeIndexInterval ( int index0 , int index1 ) { int rmMinIndex = Math . min ( index0 , index1 ) ; int rmMaxIndex = Math . max ( index0 , index1 ) ; int gapLength = ( rmMaxIndex - rmMinIndex ) + 1 ; for ( int i = rmMinIndex ; i <= maxIndex ; i ++ ) { setState ( i , value . get ( i + gapLength ) ) ; } }
target:  Remove the indices in the interval index0,index1 (inclusive) from the selection model.  This is typically called to sync the selection model width a corresponding change in the data model.  Note that (as always) index0 can be greater than index1.