17 |
|
* attempted additions may fail due to resource exhaustion (causing |
18 |
|
* <tt>OutOfMemoryError</tt>). |
19 |
|
* |
20 |
+ |
* <p>This class implements all of the <em>optional</em> methods |
21 |
+ |
* of the {@link Collection} and {@link Iterator} interfaces. |
22 |
|
* <p>The Iterator provided in method {@link #iterator()} is |
23 |
|
* <em>not</em> guaranteed to traverse the elements of the |
24 |
|
* PriorityBlockingQueue in any particular order. If you need ordered |
339 |
|
} |
340 |
|
|
341 |
|
/** |
342 |
< |
* Returns an iterator over the elements in this queue. The iterator |
343 |
< |
* does not return the elements in any particular order. |
344 |
< |
* The |
345 |
< |
* returned iterator is a "fast-fail" iterator that will |
346 |
< |
* throw {@link java.util.ConcurrentModificationException} |
347 |
< |
* upon detected interference. |
342 |
> |
* Returns an iterator over the elements in this queue. The |
343 |
> |
* iterator does not return the elements in any particular order. |
344 |
> |
* The returned iterator is a thread-safe "fast-fail" iterator |
345 |
> |
* that will throw {@link |
346 |
> |
* java.util.ConcurrentModificationException} upon detected |
347 |
> |
* interference. |
348 |
|
* |
349 |
|
* @return an iterator over the elements in this queue. |
350 |
|
*/ |