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.34 by dl, Wed May 25 14:05:27 2005 UTC vs.
Revision 1.35 by dl, Fri Jun 10 18:12:59 2005 UTC

# Line 219 | Line 219 | public class DelayQueue<E extends Delaye
219  
220      /**
221       * Retrieves, but does not remove, the head of this queue,
222 <     * returning <tt>null</tt> if this queue has no elements with an
223 <     * expired delay.
222 >     * or returns <tt>null</tt> if this queue is empty.
223 >     * Unlike <tt>poll</tt>, this method can be used to inspect
224 >     * elements that have not yet expired.
225       *
226       * @return the head of this queue, or <tt>null</tt> if this
227 <     *         queue has no elements with an expired delay
227 >     *         queue is empty.
228       */
229      public E peek() {
230          final ReentrantLock lock = this.lock;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines