186 |
|
/** |
187 |
|
* Adds the specified element as the last element of this deque, |
188 |
|
* waiting if necessary for space to become available. This |
189 |
< |
* method is equivalent to to putLast |
189 |
> |
* method is equivalent to putLast |
190 |
|
* @param o the element to add |
191 |
|
* @throws InterruptedException if interrupted while waiting. |
192 |
|
* @throws NullPointerException if the specified element is <tt>null</tt>. |
199 |
|
* insertion restrictions (for example capacity bounds), method |
200 |
|
* <tt>offer</tt> is generally preferable to method {@link |
201 |
|
* Collection#add}, which can fail to insert an element only by |
202 |
< |
* throwing an exception. This method is equivalent to to |
202 |
> |
* throwing an exception. This method is equivalent to |
203 |
|
* offerLast |
204 |
|
* |
205 |
|
* @param o the element to add. |
213 |
|
/** |
214 |
|
* Retrieves and removes the first element of this deque, waiting |
215 |
|
* if no elements are present on this deque. |
216 |
< |
* This method is equivalent to to takeFirst |
216 |
> |
* This method is equivalent to takeFirst |
217 |
|
* @return the head of this deque |
218 |
|
* @throws InterruptedException if interrupted while waiting. |
219 |
|
*/ |
222 |
|
/** |
223 |
|
* Retrieves and removes the first element of this deque, waiting |
224 |
|
* if necessary up to the specified wait time if no elements are |
225 |
< |
* present on this deque. This method is equivalent to to |
225 |
> |
* present on this deque. This method is equivalent to |
226 |
|
* pollFirst |
227 |
|
* @param timeout how long to wait before giving up, in units of |
228 |
|
* <tt>unit</tt> |