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.11 by dholmes, Mon Aug 4 01:50:33 2003 UTC vs.
Revision 1.12 by dholmes, Wed Aug 6 01:57:53 2003 UTC

# Line 28 | Line 28 | public abstract class AbstractQueue<E>
28      // We also inherit, or define, all necessary @throws comments
29  
30      /**
31 +     * @throws NullPointerException if the specified element is <tt>null</tt>
32 +     */
33 +    public abstract boolean offer(E o);
34 +
35 +    /**
36       * Adds the specified element to this queue.
37       * @return <tt>true</tt> (as per the general contract of
38       * <tt>Collection.add</tt>).
# Line 49 | Line 54 | public abstract class AbstractQueue<E>
54       * the specified collection is this queue, and this queue is nonempty.)
55       * <p>
56       * This implementation iterates over the specified collection, and adds
57 <     * each object returned by the iterator to this collection, in turn.
57 >     * each object returned by the iterator to this queue, in turn.
58       *
59       * @param c collection whose elements are to be added to this queue
60       * @return <tt>true</tt> if this collection changed as a result of the

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines