15 |
|
* {@link java.util.Comparator}, depending on which constructor is |
16 |
|
* used. A priority queue does not permit <tt>null</tt> elements. |
17 |
|
* A priority queue relying on natural ordering also does not |
18 |
< |
* permit insertion of non-comparable objects (doing so results |
18 |
> |
* permit insertion of non-comparable objects (doing so may result |
19 |
|
* in <tt>ClassCastException</tt>). |
20 |
|
* |
21 |
|
* <p>The <em>head</em> of this queue is the <em>least</em> element |
59 |
|
* @since 1.5 |
60 |
|
* @version %I%, %G% |
61 |
|
* @author Josh Bloch |
62 |
+ |
* @param <E> the type of elements held in this collection |
63 |
|
*/ |
64 |
|
public class PriorityQueue<E> extends AbstractQueue<E> |
65 |
|
implements Queue<E>, java.io.Serializable { |