[cvs] / jsr166 / src / main / java / util / Deque.java Repository:
ViewVC logotype

Diff of /jsr166/src/main/java/util/Deque.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.40, Wed Aug 23 20:17:53 2017 UTC revision 1.41, Thu Apr 5 00:03:34 2018 UTC
# Line 112  Line 112 
112   * <p>Deques can also be used as LIFO (Last-In-First-Out) stacks.  This   * <p>Deques can also be used as LIFO (Last-In-First-Out) stacks.  This
113   * interface should be used in preference to the legacy {@link Stack} class.   * interface should be used in preference to the legacy {@link Stack} class.
114   * When a deque is used as a stack, elements are pushed and popped from the   * When a deque is used as a stack, elements are pushed and popped from the
115   * beginning of the deque.  Stack methods are precisely equivalent to   * beginning of the deque.  Stack methods are equivalent to {@code Deque}
116   * {@code Deque} methods as indicated in the table below:   * methods as indicated in the table below:
117   *   *
118   * <table class="striped">   * <table class="striped">
119   * <caption>Comparison of Stack and Deque methods</caption>   * <caption>Comparison of Stack and Deque methods</caption>
# Line 134  Line 134 
134   *  </tr>   *  </tr>
135   *  <tr>   *  <tr>
136   *    <th scope="row">{@link #peek() peek()}</th>   *    <th scope="row">{@link #peek() peek()}</th>
137   *    <td>{@link #peekFirst() peekFirst()}</td>   *    <td>{@link #getFirst() getFirst()}</td>
138   *  </tr>   *  </tr>
139   *  </tbody>   *  </tbody>
140   * </table>   * </table>

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8