< prev index next >
src/java.base/share/classes/java/util/concurrent/ConcurrentLinkedQueue.java
Print this page
@@ -956,26 +956,29 @@
return new CLQSpliterator();
}
/**
* @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));
}
@@ -1046,10 +1049,11 @@
}
}
/**
* @throws NullPointerException {@inheritDoc}
+ * @since 9
*/
public void forEach(Consumer<? super E> action) {
Objects.requireNonNull(action);
forEachFrom(action, head);
}
< prev index next >