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.30 by jsr166, Tue May 17 22:04:55 2005 UTC vs.
Revision 1.31 by jsr166, Mon Jul 18 19:14:17 2005 UTC

# Line 5 | Line 5
5   */
6  
7   package java.util;
8 + import java.util.*; // for javadoc (till 6280605 is fixed)
9  
10   /**
11   * This class provides skeletal implementations of some {@link Queue}
# Line 53 | Line 54 | public abstract class AbstractQueue<E>
54       * else throws an <tt>IllegalStateException</tt>.
55       *
56       * @param e the element to add
57 <     * @return <tt>true</tt> (as per the spec for {@link Collection#add})
57 >     * @return <tt>true</tt> (as specified by {@link Collection#add})
58       * @throws IllegalStateException if the element cannot be added at this
59       *         time due to capacity restrictions
60       * @throws ClassCastException if the class of the specified element
# Line 72 | Line 73 | public abstract class AbstractQueue<E>
73  
74      /**
75       * Retrieves and removes the head of this queue.  This method differs
76 <     * from {@link #poll} only in that it throws an exception if this queue
77 <     * is empty.
76 >     * from {@link #poll poll} only in that it throws an exception if this
77 >     * queue is empty.
78       *
79       * <p>This implementation returns the result of <tt>poll</tt>
80       * unless the queue is empty.
# Line 91 | Line 92 | public abstract class AbstractQueue<E>
92  
93      /**
94       * Retrieves, but does not remove, the head of this queue.  This method
95 <     * differs from {@link #peek} only in that it throws an exception if
95 >     * differs from {@link #peek peek} only in that it throws an exception if
96       * this queue is empty.
97       *
98       * <p>This implementation returns the result of <tt>peek</tt>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines