308 |
|
/** |
309 |
|
* Retrieves and removes the head of this queue, waiting if necessary |
310 |
|
* for another thread to insert it. |
311 |
+ |
* @throws InterruptedException if interrupted while waiting. |
312 |
|
* @return the head of this queue |
313 |
|
*/ |
314 |
|
public E take() throws InterruptedException { |
571 |
|
/** |
572 |
|
* Sets the zeroeth element of the specified array to <tt>null</tt> |
573 |
|
* (if the array has non-zero length) and returns it. |
574 |
+ |
* @param a the array |
575 |
|
* @return the specified array |
576 |
|
*/ |
577 |
|
public <T> T[] toArray(T[] a) { |