public boolean remove(Object o) { checkReadOnly(); init(); if (modifyRemoveListening) { if (set.remove(o)) { modifyRemoval(o); return true; } return false; } return set.remove(o); }
public boolean remove(Object o) { checkReadOnly(); init(); if (modifyRemoveListening){ if (set.remove(o)){ modifyRemoval(o); return true; } return false; } return set.remove(o); }
public boolean remove(Object o) { checkReadOnly(); init(); if (modifyRemoveListening) { if (set.remove(o)) { modifyRemoval(o); return true; } return false; } return set.remove(o); }
public void clear() { checkReadOnly(); initClear(); if (modifyRemoveListening){ Iterator<E> it = set.iterator(); while (it.hasNext()) { E e = it.next(); modifyRemoval(e); } } set.clear(); }
public void clear() { checkReadOnly(); initClear(); if (modifyRemoveListening) { Iterator<E> it = set.iterator(); while (it.hasNext()) { E e = it.next(); modifyRemoval(e); } } set.clear(); }
public boolean retainAll(Collection<?> c) { checkReadOnly(); init(); if (modifyRemoveListening){ boolean changed = false; Iterator<?> it = set.iterator(); while (it.hasNext()) { Object o = it.next(); if (!c.contains(o)){ it.remove(); modifyRemoval(o); changed = true; } } return changed; } return set.retainAll(c); }
public boolean removeAll(Collection<?> beans) { checkReadOnly(); init(); if (modifyRemoveListening) { boolean changed = false; for (Object bean : beans) { if (set.remove(bean)) { modifyRemoval(bean); changed = true; } } return changed; } return set.removeAll(beans); }
public boolean retainAll(Collection<?> c) { checkReadOnly(); init(); if (modifyRemoveListening) { boolean changed = false; Iterator<?> it = set.iterator(); while (it.hasNext()) { Object o = it.next(); if (!c.contains(o)) { it.remove(); modifyRemoval(o); changed = true; } } return changed; } return set.retainAll(c); }
public void clear() { checkReadOnly(); initClear(); if (modifyRemoveListening) { for (E bean : set) { modifyRemoval(bean); } } set.clear(); }
public boolean removeAll(Collection<?> c) { checkReadOnly(); init(); if (modifyRemoveListening){ boolean changed = false; Iterator<?> it = c.iterator(); while (it.hasNext()) { Object o = (Object) it.next(); if (set.remove(o)){ modifyRemoval(o); changed = true; } } return changed; } return set.removeAll(c); }
public boolean removeAll(Collection<?> c) { checkReadOnly(); init(); if (modifyRemoveListening) { boolean changed = false; Iterator<?> it = c.iterator(); while (it.hasNext()) { Object o = (Object) it.next(); if (set.remove(o)) { modifyRemoval(o); changed = true; } } return changed; } return set.removeAll(c); }
public boolean retainAll(Collection<?> beans) { checkReadOnly(); init(); if (modifyRemoveListening) { boolean changed = false; Iterator<?> it = set.iterator(); while (it.hasNext()) { Object bean = it.next(); if (!beans.contains(bean)) { // not retaining this bean so add it to the removal list it.remove(); modifyRemoval(bean); changed = true; } } return changed; } return set.retainAll(beans); }