139 |
|
* Inserts the specified element into this priority queue. |
140 |
|
* |
141 |
|
* @param e the element to add |
142 |
< |
* @return <tt>true</tt> (as per the spec for {@link Collection#add}) |
142 |
> |
* @return <tt>true</tt> (as specified by {@link Collection#add}) |
143 |
|
* @throws ClassCastException if the specified element cannot be compared |
144 |
|
* with elements currently in the priority queue according to the |
145 |
|
* priority queue's ordering |
153 |
|
* Inserts the specified element into this priority queue. |
154 |
|
* |
155 |
|
* @param e the element to add |
156 |
< |
* @return <tt>true</tt> (as per the spec for {@link Queue#offer}) |
156 |
> |
* @return <tt>true</tt> (as specified by {@link Queue#offer}) |
157 |
|
* @throws ClassCastException if the specified element cannot be compared |
158 |
|
* with elements currently in the priority queue according to the |
159 |
|
* priority queue's ordering |