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