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));
  }
}

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 ) ) ; } }
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 .
