263 |
|
* }</pre> |
264 |
|
* |
265 |
|
* @param obj the object to wait on |
266 |
< |
* @param timeout the maximum time to wait. |
266 |
> |
* @param timeout the maximum time to wait. If less than |
267 |
> |
* or equal to zero, do not wait at all. |
268 |
|
* @throws InterruptedException if interrupted while waiting. |
269 |
|
* @see Object#wait(long, int) |
270 |
|
*/ |
282 |
|
* This is a convenience method that converts time arguments into the |
283 |
|
* form required by the <tt>Thread.join</tt> method. |
284 |
|
* @param thread the thread to wait for |
285 |
< |
* @param timeout the maximum time to wait |
285 |
> |
* @param timeout the maximum time to wait. If less than |
286 |
> |
* or equal to zero, do not wait at all. |
287 |
|
* @throws InterruptedException if interrupted while waiting. |
288 |
|
* @see Thread#join(long, int) |
289 |
|
*/ |
300 |
|
* Perform a <tt>Thread.sleep</tt> using this unit. |
301 |
|
* This is a convenience method that converts time arguments into the |
302 |
|
* form required by the <tt>Thread.sleep</tt> method. |
303 |
< |
* @param timeout the minimum time to sleep |
303 |
> |
* @param timeout the minimum time to sleep. If less than |
304 |
> |
* or equal to zero, do not sleep at all. |
305 |
|
* @throws InterruptedException if interrupted while sleeping. |
306 |
|
* @see Thread#sleep |
307 |
|
*/ |