608 |
|
// *** Stack methods *** |
609 |
|
|
610 |
|
/** |
611 |
< |
* Pushes an element onto the stack represented by this deque. In other |
612 |
< |
* words, inserts the element at the front of this deque unless it would |
613 |
< |
* violate capacity restrictions. |
611 |
> |
* Pushes an element onto the stack represented by this deque (in other |
612 |
> |
* words, at the head of this deque) if it is possible to do so |
613 |
> |
* immediately without violating capacity restrictions, throwing an |
614 |
> |
* {@code IllegalStateException} if no space is currently available. |
615 |
|
* |
616 |
|
* <p>This method is equivalent to {@link #addFirst(Object) addFirst}. |
617 |
|
* |