< prev index next >

src/java.base/share/classes/java/util/concurrent/ConcurrentLinkedDeque.java

Print this page

        

*** 1567,1592 **** --- 1567,1595 ---- initHeadTail(h, t); } /** * @throws NullPointerException {@inheritDoc} + * @since 9 */ public boolean removeIf(Predicate<? super E> filter) { Objects.requireNonNull(filter); return bulkRemove(filter); } /** * @throws NullPointerException {@inheritDoc} + * @since 9 */ public boolean removeAll(Collection<?> c) { Objects.requireNonNull(c); return bulkRemove(e -> c.contains(e)); } /** * @throws NullPointerException {@inheritDoc} + * @since 9 */ public boolean retainAll(Collection<?> c) { Objects.requireNonNull(c); return bulkRemove(e -> !c.contains(e)); }
*** 1607,1616 **** --- 1610,1620 ---- return removed; } /** * @throws NullPointerException {@inheritDoc} + * @since 9 */ public void forEach(Consumer<? super E> action) { Objects.requireNonNull(action); E item; for (Node<E> p = first(); p != null; p = succ(p))
< prev index next >