[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.98, Tue Oct 22 15:21:30 2013 UTC revision 1.99, Fri Apr 11 21:15:44 2014 UTC
# Line 99  Line 99 
99      /**      /**
100       * The number of elements in the priority queue.       * The number of elements in the priority queue.
101       */       */
102      private int size = 0;      private int size;
103    
104      /**      /**
105       * The comparator, or null if priority queue uses elements'       * The comparator, or null if priority queue uses elements'
# Line 476  Line 476 
476           * Index (into queue array) of element to be returned by           * Index (into queue array) of element to be returned by
477           * subsequent call to next.           * subsequent call to next.
478           */           */
479          private int cursor = 0;          private int cursor;
480    
481          /**          /**
482           * Index of element returned by most recent call to next,           * Index of element returned by most recent call to next,
# Line 496  Line 496 
496           * We expect that most iterations, even those involving removals,           * We expect that most iterations, even those involving removals,
497           * will not need to store elements in this field.           * will not need to store elements in this field.
498           */           */
499          private ArrayDeque<E> forgetMeNot = null;          private ArrayDeque<E> forgetMeNot;
500    
501          /**          /**
502           * Element returned by the most recent call to next iff that           * Element returned by the most recent call to next iff that
503           * element was drawn from the forgetMeNot list.           * element was drawn from the forgetMeNot list.
504           */           */
505          private E lastRetElt = null;          private E lastRetElt;
506    
507          /**          /**
508           * The modCount value that the iterator believes that the backing           * The modCount value that the iterator believes that the backing

Legend:
Removed from v.1.98  
changed lines
  Added in v.1.99

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8