511 |
|
|
512 |
|
/** |
513 |
|
* Inserts the specified element at the tail of this queue. |
514 |
< |
* As the queue is unbounded this method will never throw |
514 |
> |
* As the queue is unbounded, this method will never throw |
515 |
|
* {@link IllegalStateException} or return {@code false}. |
516 |
|
* |
517 |
|
* @return {@code true} (as specified by {@link Collection#add}) |
551 |
|
|
552 |
|
/** |
553 |
|
* Inserts the specified element at the tail of this queue, |
554 |
< |
* waiting up to the specified wait time for the element to be |
555 |
< |
* received by a consumer invoking {@code take} or {@code poll}. |
554 |
> |
* waiting up to the specified wait time if necessary for the |
555 |
> |
* element to be received by a consumer invoking {@code take} or |
556 |
> |
* {@code poll}. |
557 |
|
* |
558 |
|
* @throws NullPointerException if the specified element is null |
559 |
|
*/ |