public List < T > removeAll ( final List < T > toRemove ) { final List < T > removedList = new ArrayList <> ( ) ; for ( final T t : toRemove ) { final int index = data . indexOf ( t ) ; if ( index != - 1 ) { removedList . add ( data . remove ( index ) ) ; } } fireTableDataChanged ( ) ; return removedList ; }
Removes the all the given Object .