final int findMarkAdjustIndex(int searchIndex){
  search.index=Math.max(searchIndex,1);
  int index=findSortIndex(search);
  for (int i=index - 1; i >= 0; i--) {
    MarkData d=marks.elementAt(i);
    if (d.index != search.index) {
      break;
    }
    index-=1;
  }
  return index;
}

final int findMarkAdjustIndex ( int searchIndex ) { search . index = Math . max ( searchIndex , 1 ) ; int index = findSortIndex ( search ) ; for ( int i = index - 1 ; i >= 0 ; i -- ) { MarkData d = marks . elementAt ( i ) ; if ( d . index != search . index ) { break ; } index -= 1 ; } return index ; }
finds the index to start mark adjustments given some search index .
