23 |
|
* |
24 |
|
* <p> |
25 |
|
* <table BORDER CELLPADDING=3 CELLSPACING=1> |
26 |
+ |
* <caption>Summary of BlockingDeque methods</caption> |
27 |
|
* <tr> |
28 |
|
* <td ALIGN=CENTER COLSPAN = 5> <b>First Element (Head)</b></td> |
29 |
|
* </tr> |
99 |
|
* |
100 |
|
* <p> |
101 |
|
* <table BORDER CELLPADDING=3 CELLSPACING=1> |
102 |
+ |
* <caption>Comparison of BlockingQueue and BlockingDeque methods</caption> |
103 |
|
* <tr> |
104 |
|
* <td ALIGN=CENTER> <b>{@code BlockingQueue} Method</b></td> |
105 |
|
* <td ALIGN=CENTER> <b>Equivalent {@code BlockingDeque} Method</b></td> |
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 |
|
* |