jdk/src/share/classes/java/util/concurrent/ConcurrentLinkedQueue.java
changeset 4110 ac033ba6ede4
parent 3419 3ae6dc68c20d
child 5506 202f599c92aa
equal deleted inserted replaced
4109:b997a0a1005d 4110:ac033ba6ede4
   248      * @param c the collection of elements to initially contain
   248      * @param c the collection of elements to initially contain
   249      * @throws NullPointerException if the specified collection or any
   249      * @throws NullPointerException if the specified collection or any
   250      *         of its elements are null
   250      *         of its elements are null
   251      */
   251      */
   252     public ConcurrentLinkedQueue(Collection<? extends E> c) {
   252     public ConcurrentLinkedQueue(Collection<? extends E> c) {
   253         for (Iterator<? extends E> it = c.iterator(); it.hasNext();)
   253         for (E e : c)
   254             add(it.next());
   254             add(e);
   255     }
   255     }
   256 
   256 
   257     // Have to override just to update the javadoc
   257     // Have to override just to update the javadoc
   258 
   258 
   259     /**
   259     /**