equal
deleted
inserted
replaced
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 /** |