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

Comparing jsr166/src/main/java/util/Queue.java (file contents):
Revision 1.24 by dl, Sun Dec 26 20:13:57 2004 UTC vs.
Revision 1.28 by jsr166, Mon May 2 17:34:02 2005 UTC

# Line 18 | Line 18 | package java.util;
18   * implementations; in most implementations, insert operations cannot
19   * fail.
20   *
21 + * <p>
22   * <table BORDER CELLPADDING=3 CELLSPACING=1>
23   *  <tr>
24   *    <td></td>
# Line 120 | Line 121 | public interface Queue<E> extends Collec
121       * preferable to method {@link Collection#add}, which can fail to
122       * insert an element only by throwing an exception.
123       *
124 <     * @param o the element to insert.
124 >     * @param e the element to insert.
125       * @return <tt>true</tt> if it was possible to add the element to
126       * this queue, else <tt>false</tt>
127       */
128 <    boolean offer(E o);
128 >    boolean offer(E e);
129  
130      /**
131       * Retrieves and removes the head of this queue, or <tt>null</tt>
# Line 137 | Line 138 | public interface Queue<E> extends Collec
138  
139      /**
140       * Retrieves and removes the head of this queue.  This method
141 <     * differs from the <tt>poll</tt> method in that it throws an
141 >     * differs from the {@link #poll} method only in that it throws an
142       * exception if this queue is empty.
143       *
144       * @return the head of this queue.
# Line 156 | Line 157 | public interface Queue<E> extends Collec
157  
158      /**
159       * Retrieves, but does not remove, the head of this queue.  This method
160 <     * differs from the <tt>peek</tt> method only in that it throws an
160 >     * differs from the {@link #peek} method only in that it throws an
161       * exception if this queue is empty.
162       *
163       * @return the head of this queue.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines