@Override public boolean retainAll(Collection<?> c) { boolean changed = super.retainAll(c); if (changed) { // drop the transient set, will be rebuilt when/if needed synchronized(this) { knownGroupNamesInList = null; } } return changed; }
/** * Retains only the elements in this set that are contained in the * specified collection. In other words, removes from this set all of * its elements that are not contained in the specified collection. If * the specified collection is also a set, this operation effectively * modifies this set so that its value is the <i>intersection</i> of the * two sets. * * @param c collection containing elements to be retained in this set * @return {@code true} if this set changed as a result of the call * @throws ClassCastException if the class of an element of this set * is incompatible with the specified collection (optional) * @throws NullPointerException if this set contains a null element and the * specified collection does not permit null elements (optional), * or if the specified collection is null * @see #remove(Object) */ public boolean retainAll(Collection<?> c) { return al.retainAll(c); }
/** Retains only the elements in this list that are contained in the specified collection */ public void retainAll(Collection<IpFilterRule> c) { if (c == null) { throw new NullPointerException("Collection can not be null"); } ipFilterRuleList.retainAll(c); }
/** * Removes any layers from this list that are not contained in the input collection. * * @param layers the layers which should not be removed * @return {@code true} if any layers were removed; {@code false} otherwise */ @Override public boolean retainAll(Collection<?> layers) { for (Layer element : this) { if (!layers.contains(element)) { if (layerListener != null) { element.removeMapLayerListener(layerListener); } element.dispose(); } } boolean removed = super.retainAll(layers); if (removed) { fireLayerRemoved(null, 0, size() - 1); } return removed; }
@Override public boolean retainAll(Collection<?> c) { boolean changed = super.retainAll(c); if (changed) { // drop the transient set, will be rebuilt when/if needed synchronized(this) { knownGroupNamesInList = null; } } return changed; }
@Override public boolean retainAll(Collection c) { if (super.retainAll(c)) { modCount.incrementAndGet(); return true; } return false; }
@Override public boolean retainAll(Collection<?> c) { if (super.retainAll(c)) { modCount.incrementAndGet(); return true; } return false; }
@Override public boolean retainAll(Collection<?> c) { if (super.retainAll(c)) { modCount.incrementAndGet(); return true; } return false; }
@Override public boolean retainAll(Collection<?> c) { if (super.retainAll(c)) { modCount.incrementAndGet(); return true; } return false; }
/** Retains only the elements in this list that are contained in the specified collection */ public void retainAll(Collection<IpFilterRule> c) { if (c == null) { throw new NullPointerException("Collection can not be null"); } ipFilterRuleList.retainAll(c); }
@Override public boolean retainAll(Collection<?> c) { if (super.retainAll(c)) { modCount.incrementAndGet(); return true; } return false; }
/** Retains only the elements in this list that are contained in the specified collection */ public void retainAll(Collection<IpFilterRule> c) { if (c == null) { throw new NullPointerException("Collection can not be null"); } ipFilterRuleList.retainAll(c); }
public void setListeners(Collection<ListenerInterfaceType> listeners) { this.listeners.retainAll(listeners); this.listeners.addAllAbsent(listeners); }
@Override public boolean retainAll(Collection<?> col) { boolean result = underlyingList.retainAll(col); markAsStale(); return result; }
@Override public boolean retainAll(Collection<?> col) { boolean result = underlyingList.retainAll(col); markAsStale(); return result; }
@Override public boolean retainAll(Collection<?> col) { boolean result = underlyingList.retainAll(col); markAsStale(); return result; }
@Override public boolean retainAll(Collection<?> col) { boolean result = underlyingList.retainAll(col); markAsStale(); return result; }
@Override public boolean retainAll(Collection<?> col) { boolean result = underlyingList.retainAll(col); markAsStale(); return result; }
@Override public boolean retainAll(Collection<?> col) { boolean result = underlyingList.retainAll(col); markAsStale(); return result; }
@Override public boolean retainAll(Collection<?> col) { boolean result = underlyingList.retainAll(col); markAsStale(); return result; }