mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8200728: Docs (Comparison of Stack and Deque methods) for Deque is not correct
Reviewed-by: martin, psandoz
This commit is contained in:
parent
70e23d4ded
commit
98ede98f5a
1 changed files with 3 additions and 3 deletions
|
@ -141,8 +141,8 @@ package java.util;
|
||||||
* <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
|
||||||
* interface should be used in preference to the legacy {@link Stack} class.
|
* interface should be used in preference to the legacy {@link Stack} class.
|
||||||
* 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
|
||||||
* beginning of the deque. Stack methods are precisely equivalent to
|
* beginning of the deque. Stack methods are equivalent to {@code Deque}
|
||||||
* {@code Deque} methods as indicated in the table below:
|
* methods as indicated in the table below:
|
||||||
*
|
*
|
||||||
* <table class="striped">
|
* <table class="striped">
|
||||||
* <caption>Comparison of Stack and Deque methods</caption>
|
* <caption>Comparison of Stack and Deque methods</caption>
|
||||||
|
@ -163,7 +163,7 @@ package java.util;
|
||||||
* </tr>
|
* </tr>
|
||||||
* <tr>
|
* <tr>
|
||||||
* <th scope="row">{@link #peek() peek()}</th>
|
* <th scope="row">{@link #peek() peek()}</th>
|
||||||
* <td>{@link #peekFirst() peekFirst()}</td>
|
* <td>{@link #getFirst() getFirst()}</td>
|
||||||
* </tr>
|
* </tr>
|
||||||
* </tbody>
|
* </tbody>
|
||||||
* </table>
|
* </table>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue