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.29 by jsr166, Mon May 16 04:55:20 2005 UTC vs.
Revision 1.33 by jsr166, Fri Mar 3 17:15:06 2006 UTC

# Line 53 | Line 53 | public abstract class AbstractQueue<E>
53       * else throws an <tt>IllegalStateException</tt>.
54       *
55       * @param e the element to add
56 <     * @return <tt>true</tt> (as per the spec for {@link Collection#add})
56 >     * @return <tt>true</tt> (as specified by {@link Collection#add})
57       * @throws IllegalStateException if the element cannot be added at this
58       *         time due to capacity restrictions
59       * @throws ClassCastException if the class of the specified element
60       *         prevents it from being added to this queue
61       * @throws NullPointerException if the specified element is null and
62 <     *         this queue not permit null elements
62 >     *         this queue does not permit null elements
63       * @throws IllegalArgumentException if some property of this element
64       *         prevents it from being added to this queue
65       */
# Line 72 | Line 72 | public abstract class AbstractQueue<E>
72  
73      /**
74       * Retrieves and removes the head of this queue.  This method differs
75 <     * from {@link #poll} only in that it throws an exception if this queue
76 <     * is empty.
75 >     * from {@link #poll poll} only in that it throws an exception if this
76 >     * queue is empty.
77       *
78       * <p>This implementation returns the result of <tt>poll</tt>
79       * unless the queue is empty.
# Line 91 | Line 91 | public abstract class AbstractQueue<E>
91  
92      /**
93       * Retrieves, but does not remove, the head of this queue.  This method
94 <     * differs from {@link #peek} only in that it throws an exception if
94 >     * differs from {@link #peek peek} only in that it throws an exception if
95       * this queue is empty.
96       *
97       * <p>This implementation returns the result of <tt>peek</tt>
# Line 135 | Line 135 | public abstract class AbstractQueue<E>
135       * having been successfully added when the associated exception is
136       * thrown.
137       *
138 <     * @param c collection whose elements are to be added to this queue
138 >     * @param c collection containing elements to be added to this queue
139       * @return <tt>true</tt> if this queue changed as a result of the call
140       * @throws ClassCastException if the class of an element of the specified
141       *         collection prevents it from being added to this queue

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines