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