# | Line 16 | Line 16 | import java.util.*; | |
---|---|---|
16 | * While this queue is logically unbounded, | |
17 | * attempted additions may fail due to resource exhaustion (causing | |
18 | * <tt>OutOfMemoryError</tt>). | |
19 | + | * |
20 | + | * <p>The Iterator provided in method {@link #iterator()} is |
21 | + | * <em>not</em> guaranteed to traverse the elements of the |
22 | + | * PriorityBlockingQueue in any particular order. If you need ordered |
23 | + | * traversal, consider using <tt>Arrays.sort(pq.toArray())</tt>. |
24 | + | * |
25 | * @since 1.5 | |
26 | * @author Doug Lea | |
27 | */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |