10 |
|
import java.util.*; |
11 |
|
|
12 |
|
/** |
13 |
< |
* An unbounded {@linkplain BlockingQueue blocking queue} based on a |
14 |
< |
* {@link PriorityQueue}, obeying its ordering rules and |
15 |
< |
* implementation characteristics. While this queue is logically |
13 |
> |
* An unbounded {@linkplain BlockingQueue blocking queue} that uses |
14 |
> |
* the same ordering rules as class {@link PriorityQueue} and supplies |
15 |
> |
* blocking retrieval operations. While this queue is logically |
16 |
|
* unbounded, attempted additions may fail due to resource exhaustion |
17 |
< |
* (causing <tt>OutOfMemoryError</tt>). A priority queue does not |
18 |
< |
* permit <tt>null</tt> elements. A priority queue relying on natural |
17 |
> |
* (causing <tt>OutOfMemoryError</tt>). This class does not permit |
18 |
> |
* <tt>null</tt> elements. A priority queue relying on natural |
19 |
|
* ordering also does not permit insertion of non-comparable objects |
20 |
|
* (doing so results in <tt>ClassCastException</tt>). |
21 |
|
* |