# | Line 325 | Line 325 | public class PriorityQueue<E> extends Ab | |
---|---|---|
325 | return offer(o); | |
326 | } | |
327 | ||
328 | + | /** |
329 | + | * Removes a single instance of the specified element from this |
330 | + | * collection, if it is present. |
331 | + | */ |
332 | public boolean remove(Object o) { | |
333 | if (o == null) | |
334 | return false; | |
# | Line 456 | Line 460 | public class PriorityQueue<E> extends Ab | |
460 | } | |
461 | ||
462 | /** | |
463 | < | * Remove all elements from the priority queue. |
463 | > | * Removes all elements from the priority queue. |
464 | > | * The queue will be empty after this call returns. |
465 | */ | |
466 | public void clear() { | |
467 | modCount++; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |