public < E extends T > void filter ( Collection < E > coll ) { for ( Iterator < E > itr = coll . iterator ( ) ; itr . hasNext ( ) ; ) { if ( ! isMatch ( itr . next ( ) ) ) { itr . remove ( ) ; } } }
Remove non - matching elements from the specified collection .