[cvs] / jsr166 / src / main / java / util / PriorityQueue.java Repository:
ViewVC logotype

Diff of /jsr166/src/main/java/util/PriorityQueue.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.58, Mon Nov 28 23:53:32 2005 UTC revision 1.59, Tue Nov 29 08:52:26 2005 UTC
# Line 311  Line 311 
311    
312      /**      /**
313       * Version of remove using reference equality, not equals.       * Version of remove using reference equality, not equals.
314       * Needed by iterator.remove       * Needed by iterator.remove.
315       *       *
316       * @param o element to be removed from this queue, if present       * @param o element to be removed from this queue, if present
317       * @return <tt>true</tt> if removed.       * @return <tt>true</tt> if removed
318       */       */
319      boolean removeEq(Object o) {      boolean removeEq(Object o) {
320          for (int i = 0; i < size; i++) {          for (int i = 0; i < size; i++) {
# Line 346  Line 346 
346       * maintained by this list.  (In other words, this method must allocate       * 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.       * 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.       * @return an array containing all of the elements in this queue
350       */       */
351      public Object[] toArray() {      public Object[] toArray() {
352          return Arrays.copyOf(queue, size);          return Arrays.copyOf(queue, size);

Legend:
Removed from v.1.58  
changed lines
  Added in v.1.59

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8