public boolean retainAll(Collection<?> c) { return list.retainAll(c); }
public boolean retainAll(Collection<?> c) { return list.retainAll(c); }
/** * {@inheritDoc} */ public boolean retainAll(Collection c) { return worklist.retainAll(c); }
@Override public boolean retainAll(Collection<?> c) { boolean b = list.retainAll(c); lazySet(list.size()); return b; }
/** * Remove from this collection all of its elements except those that are * contained in the specified collection. * * @param collection Collection containing elements to be retained * * @exception UnsupportedOperationException if this optional operation * is not supported by this list */ public boolean retainAll(Collection collection) { if (fast) { synchronized (this) { ArrayList temp = (ArrayList) list.clone(); boolean result = temp.retainAll(collection); list = temp; return (result); } } else { synchronized (list) { return (list.retainAll(collection)); } } }
@Override public synchronized boolean retainAll(Collection<?> c) { ArrayList<E> newList = new ArrayList<>(list); // Removals in ArrayList won't break sorting boolean changed = newList.retainAll(c); list = Collections.unmodifiableList(newList); return changed; }
/** * Remove from this collection all of its elements except those that are * contained in the specified collection. * * @param collection Collection containing elements to be retained * * @exception UnsupportedOperationException if this optional operation * is not supported by this list */ public boolean retainAll(Collection collection) { if (fast) { synchronized (this) { ArrayList temp = (ArrayList) list.clone(); boolean result = temp.retainAll(collection); list = temp; return (result); } } else { synchronized (list) { return (list.retainAll(collection)); } } }
@Override public boolean retainAll(Collection<?> c) { boolean b = list.retainAll(c); lazySet(list.size()); return b; }
@Override public boolean retainAll(Collection<?> c) { onContentsChanged(); return super.retainAll(c); }
public boolean retainAll(Collection<?> c) { ensureUnlocked(); return super.retainAll(c); }
public boolean retainAll(Collection<?> c) { ensureUnlocked(); return super.retainAll(c); }
/** * Retains only the elements in this list that are contained in the specified collection. * * @throws UnsupportedOperationException if this collection is unmodifiable. */ @Override public boolean retainAll(Collection<?> c) throws UnsupportedOperationException { synchronized (getLock()) { checkWritePermission(); return super.retainAll(c); } }
@Override public boolean retainAll(Collection c) { Map<RelativePosition, List<Comment>> orig = trackFirstChange() ? getOrigMap() : null; boolean r = super.retainAll(c); if (orig != null && r) { origMap = orig; } changed |= r; return r; }
/** * {@inheritDoc} */ public boolean retainAll(Collection c) { return worklist.retainAll(c); }
private boolean hasInfoToPaint(TimeSeriesDescriptor graph, Collection<Column> providedColumns){ TimeSeriesDescriptorAccessor accessor = TimeSeriesDescriptorAccessor.getDefault(); if (providedColumns == null || providedColumns.isEmpty() || accessor.getSourceColumns(graph) == null || accessor.getSourceColumns(graph) .isEmpty()){ return true; } //if the intersection is not empty - returns tru ArrayList<Column> list = new ArrayList<Column>(providedColumns); list.retainAll(accessor.getSourceColumns(graph)); return !list.isEmpty(); }
public boolean retainAll(Collection paramCollection) { if (_directAccess) { return super.retainAll(paramCollection); } if (isDelayLoad()) { load(); } return ProxyCollections.retainAll(this, paramCollection); }
public boolean retainAll(Collection paramCollection) { if (_directAccess) { return super.retainAll(paramCollection); } if (isDelayLoad()) { load(); } return ProxyCollections.retainAll(this, paramCollection); }
@Override public boolean retainAll(final Collection<?> objects) { checkImmutability(); invalidateSampleNameMap(); invalidateSampleOrdering(); return getGenotypes().retainAll(objects); }