public void removeAll(Class cl) { LinkedList ll = new LinkedList(); for (SIPHeader sh = (SIPHeader) hlist.first(); sh != null; sh = (SIPHeader) hlist.next()) { if (sh.getClass().equals(cl)) { ll.add(sh); } } ListIterator li = ll.listIterator(); while (li.hasNext()) { SIPHeader sh = (SIPHeader) li.next(); hlist.remove(sh); }
public boolean removeAll(java.util.Collection collection) { return this.hlist.removeAll(collection);
	public void removeAll(Class cl) {		LinkedList ll = new LinkedList();		for (SIPHeader sh = (SIPHeader) hlist.first();			sh != null;			sh = (SIPHeader) hlist.next()) {			if (sh.getClass().equals(cl)) {				ll.add(sh);			}		}		ListIterator li = ll.listIterator();		while (li.hasNext()) {			SIPHeader sh = (SIPHeader) li.next();			hlist.remove(sh);		}	}