< prev index next >

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

Print this page

        

*** 972,981 **** --- 972,982 ---- return new LBQSpliterator(); } /** * @throws NullPointerException {@inheritDoc} + * @since 9 */ public void forEach(Consumer<? super E> action) { Objects.requireNonNull(action); forEachFrom(action, null); }
*** 1013,1038 **** --- 1014,1042 ---- } while (n > 0 && p != null); } /** * @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)); }
< prev index next >