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

Comparing jsr166/src/main/java/util/AbstractQueue.java (file contents):
Revision 1.5 by tim, Sat Jul 26 13:17:51 2003 UTC vs.
Revision 1.6 by dholmes, Mon Jul 28 04:11:54 2003 UTC

# Line 25 | Line 25 | public abstract class AbstractQueue<E> e
25              throw new IllegalStateException("Queue full");
26      }
27  
28 <    public E remove() {
28 >    public E remove() throws NoSuchElementException {
29          E x = poll();
30          if (x != null)
31              return x;
# Line 33 | Line 33 | public abstract class AbstractQueue<E> e
33              throw new NoSuchElementException();
34      }
35  
36 <    public E element() {
36 >    public E element() throws NoSuchElementException {
37          E x = peek();
38          if (x != null)
39              return x;
# Line 46 | Line 46 | public abstract class AbstractQueue<E> e
46              ;
47      }
48  
49 +    // why is this here? Won't Collection declare this itself??? - David
50      public abstract Iterator<E> iterator();
51   }
52 +
53 +
54 +
55 +
56 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines