< prev index next >

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

Print this page

        

@@ -972,10 +972,11 @@
         return new LBQSpliterator();
     }
 
     /**
      * @throws NullPointerException {@inheritDoc}
+     * @since 9
      */
     public void forEach(Consumer<? super E> action) {
         Objects.requireNonNull(action);
         forEachFrom(action, null);
     }

@@ -1013,26 +1014,29 @@
         } 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 >