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

Comparing jsr166/src/main/java/util/concurrent/DelayQueue.java (file contents):
Revision 1.42 by dl, Tue Nov 22 11:45:30 2005 UTC vs.
Revision 1.43 by jsr166, Wed Nov 23 05:33:03 2005 UTC

# Line 427 | Line 427 | public class DelayQueue<E extends Delaye
427      /**
428       * Returns an iterator over all the elements (both expired and
429       * unexpired) in this queue. The iterator does not
430 <     * return the elements in any particular order.
430 >     * return the elements in any particular order.
431       *
432       * @return an iterator over the elements in this queue
433       */
# Line 442 | Line 442 | public class DelayQueue<E extends Delaye
442          final Object[] array; // Array of all elements
443          int cursor;           // index of next element to return;
444          int lastRet;          // index of last element, or -1 if no such
445 <        
445 >
446          Itr(Object[] array) {
447              lastRet = -1;
448              this.array = array;
# Line 460 | Line 460 | public class DelayQueue<E extends Delaye
460          }
461  
462          public void remove() {
463 <            if (lastRet < 0)
463 >            if (lastRet < 0)
464                  throw new IllegalStateException();
465              Object x = array[lastRet];
466              lastRet = -1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines