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

Comparing jsr166/src/jsr166x/Deque.java (file contents):
Revision 1.3 by dl, Sun Dec 5 21:15:31 2004 UTC vs.
Revision 1.4 by dl, Sun Dec 26 20:13:15 2004 UTC

# Line 56 | Line 56 | import java.util.*;    // XXX This impor
56   *  </tr>
57   *  <tr>
58   *    <td><b>Examine</b></td>
59 < *    <td>{@link #firstElement firstElement()}</td>
59 > *    <td>{@link #getFirst getFirst()}</td>
60   *    <td>{@link #peekFirst peekFirst()}</td>
61 < *    <td>{@link #lastElement lastElement()}</td>
61 > *    <td>{@link #getLast getLast()}</td>
62   *    <td>{@link #peekLast peekLast()}</td>
63   *  </tr>
64   * </table>
# Line 97 | Line 97 | import java.util.*;    // XXX This impor
97   *   </tr>
98   *   <tr>
99   *    <td>{@link java.util.Queue#element element()}</td>
100 < *    <td>{@link #firstElement firstElement()}</td>
100 > *    <td>{@link #getFirst getFirst()}</td>
101   *   </tr>
102   * </table>
103   *
# Line 275 | Line 275 | public interface Deque<E> extends Queue<
275       * @return the first element of this deque
276       * @throws NoSuchElementException if this deque is empty
277       */
278 <    E firstElement();
278 >    E getFirst();
279  
280      /**
281       * Retrieves, but does not remove, the last element of this
# Line 285 | Line 285 | public interface Deque<E> extends Queue<
285       * @return the last element of this deque
286       * @throws NoSuchElementException if this deque is empty
287       */
288 <    E lastElement();
288 >    E getLast();
289  
290      /**
291       * Removes the first occurrence of the specified element in this
# Line 391 | Line 391 | public interface Deque<E> extends Queue<
391       * this deque.  This method differs from the <tt>peek</tt> method only in
392       * that it throws an exception if this deque is empty.
393       *
394 <     * <p>This method is equivalent to {@link #firstElement()}
394 >     * <p>This method is equivalent to {@link #getFirst()}
395       *
396       * @return the head of the queue represented by this deque
397       * @throws NoSuchElementException if this deque is empty

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines