@Override public synchronized boolean retainAll(Collection<?> c) { return delegate.retainAll(c); }
@Override public boolean retainAll(Collection<?> collection) { return q.retainAll(collection); }
@Override public boolean retainAll(Collection<?> collection) { assertTrue(Thread.holdsLock(mutex)); return delegate.retainAll(collection); }
create().remove("foo"); create().removeAll(ImmutableList.of("foo")); create().retainAll(ImmutableList.of("foo")); create().size(); create().toArray();
public boolean retainAll(Collection<?> c) {return q.retainAll(c);} // We use inherited addAll; forwarding addAll would be wrong
/** * @param c * @return * @see java.util.AbstractCollection#retainAll(java.util.Collection) */ public boolean retainAll(Collection<?> c) { return deque.retainAll(c); }
@Override public boolean retainAll(Collection<?> arg0) { return blockList.retainAll(arg0); }
@Override public boolean retainAll(Collection<?> collection) { return q.retainAll(collection); }
@Override public boolean retainAll(Collection<?> collection) { return q.retainAll(collection); }
@Override public boolean retainAll(Collection<?> collection) { return q.retainAll(collection); }
@Override public boolean retainAll(Collection<?> collection) { return q.retainAll(collection); }
@Override public boolean retainAll(Collection<?> collection) { return q.retainAll(collection); }
public synchronized boolean retainAll(Collection<?> c) { return delegate.retainAll(c); }
@Override public boolean retainAll(Collection<?> collection) { return q.retainAll(collection); }
@Override public boolean retainAll(Collection<?> collection) { return q.retainAll(collection); }
public synchronized boolean retainAll(Collection<?> c) { return delegate.retainAll(c); }
public boolean retainAll(Collection<?> c) {return q.retainAll(c);} // We use inherited addAll; forwarding addAll would be wrong
private List<DependencyNode> topologicallySortedDependants() { Set<DependencyNode> visited = new HashSet<>(); Deque<DependencyNode> sorted = new ArrayDeque<>(); visit(visited, sorted); sorted.retainAll(dependantsVia); return new ArrayList<>(sorted); }
private <T extends DependencyNode> List<T> topologicallySorted(Collection<T> nodes) { Set<DependencyNode> visited = new HashSet<>(); Deque<DependencyNode> sorted = new ArrayDeque<>(); nodes.stream().filter(n -> n.getDependencies().isEmpty()) .forEach(n -> n.visit(visited, sorted)); sorted.retainAll(nodes); //noinspection unchecked return new ArrayList<>((Collection<? extends T>) sorted); }
@Override public boolean retainAll(Collection<?> collection) { assertTrue(Thread.holdsLock(mutex)); return delegate.retainAll(collection); }