36 |
|
* <p>This class and its iterator implement all of the |
37 |
|
* <em>optional</em> methods of the {@link Collection} and {@link |
38 |
|
* Iterator} interfaces. The Iterator provided in method {@link |
39 |
< |
* #iterator()} is <em>not</em> guaranteed to traverse the elements of |
39 |
> |
* #iterator()} and the Spliterator provided in method {@link #spliterator()} |
40 |
> |
* are <em>not</em> guaranteed to traverse the elements of |
41 |
|
* the PriorityBlockingQueue in any particular order. If you need |
42 |
|
* ordered traversal, consider using |
43 |
|
* {@code Arrays.sort(pq.toArray())}. Also, method {@code drainTo} |
967 |
|
|
968 |
|
/** |
969 |
|
* Returns a {@link Spliterator} over the elements in this queue. |
970 |
+ |
* The spliterator does not traverse elements in any particular order |
971 |
+ |
* (the {@link Spliterator#ORDERED ORDERED} characteristic is not reported). |
972 |
|
* |
973 |
|
* <p>The returned spliterator is |
974 |
|
* <a href="package-summary.html#Weakly"><i>weakly consistent</i></a>. |