private void update(){
  accepted.clear();
  for (int rowIndex=0; rowIndex < original.getRowCount(); rowIndex++) {
    Row row=original.getRow(rowIndex);
    if (accept(row)) {
      accepted.add(rowIndex);
    }
  }
}

private void update ( ) { accepted . clear ( ) ; for ( int rowIndex = 0 ; rowIndex < original . getRowCount ( ) ; rowIndex ++ ) { Row row = original . getRow ( rowIndex ) ; if ( accept ( row ) ) { accepted . add ( rowIndex ) ; } } }
updates the list of accepted rows .
