ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/PriorityQueue.java
(Generate patch)

Comparing jsr166/src/main/java/util/PriorityQueue.java (file contents):
Revision 1.58 by dl, Mon Nov 28 23:53:32 2005 UTC vs.
Revision 1.59 by jsr166, Tue Nov 29 08:52:26 2005 UTC

# Line 311 | Line 311 | public class PriorityQueue<E> extends Ab
311  
312      /**
313       * Version of remove using reference equality, not equals.
314 <     * Needed by iterator.remove
314 >     * Needed by iterator.remove.
315       *
316       * @param o element to be removed from this queue, if present
317 <     * @return <tt>true</tt> if removed.
317 >     * @return <tt>true</tt> if removed
318       */
319      boolean removeEq(Object o) {
320          for (int i = 0; i < size; i++) {
# Line 346 | Line 346 | public class PriorityQueue<E> extends Ab
346       * maintained by this list.  (In other words, this method must allocate
347       * a new array).  The caller is thus free to modify the returned array.
348       *
349 <     * @return an array containing all of the elements in this queue.
349 >     * @return an array containing all of the elements in this queue
350       */
351      public Object[] toArray() {
352          return Arrays.copyOf(queue, size);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines