12 |
|
* usage. They are not thread-safe; in the absence of external |
13 |
|
* synchronization, they do not support concurrent access by multiple threads. |
14 |
|
* Null elements are prohibited. This class is likely to be faster than |
15 |
< |
* {@link Stack} when used as as a stack, and faster than {@link LinkedList} |
15 |
> |
* {@link Stack} when used as a stack, and faster than {@link LinkedList} |
16 |
|
* when used as a queue. |
17 |
|
* |
18 |
|
* <p>Most <tt>ArrayDeque</tt> operations run in amortized constant time. |
503 |
|
|
504 |
|
/** |
505 |
|
* Pops an element from the stack represented by this deque. In other |
506 |
< |
* words, removes and returns the the first element of this deque. |
506 |
> |
* words, removes and returns the first element of this deque. |
507 |
|
* |
508 |
|
* <p>This method is equivalent to {@link #removeFirst()}. |
509 |
|
* |
520 |
|
* adjusting head, tail, and size as necessary. This can result in |
521 |
|
* motion of elements backwards or forwards in the array. |
522 |
|
* |
523 |
< |
* <p>This method is called delete rather than remove to emphasize the |
524 |
< |
* that that its semantics differ from those of List.remove(int). |
523 |
> |
* <p>This method is called delete rather than remove to emphasize |
524 |
> |
* that its semantics differ from those of List.remove(int). |
525 |
|
* |
526 |
|
* @return true if elements moved backwards |
527 |
|
*/ |