43 |
|
* @spec JSR-166 |
44 |
|
* @revised $Date$ |
45 |
|
* @editor $Author$ |
46 |
< |
* |
46 |
> |
* @author Doug Lea |
47 |
|
*/ |
48 |
|
public final class TimeUnit implements java.io.Serializable { |
49 |
|
|
152 |
|
* Perform a <tt>Thread.sleep</tt> using the current time unit. |
153 |
|
* This is a convenience method that converts time arguments into the |
154 |
|
* form required by the <tt>Thread.sleep</tt> method. |
155 |
< |
* @param time the minimum time to sleep |
155 |
> |
* @param timeout the minimum time to sleep |
156 |
|
* @throws InterruptedException if interrupted while sleeping. |
157 |
|
* @see Thread#sleep |
158 |
|
*/ |
168 |
|
private static final int MS = 2; |
169 |
|
private static final int S = 3; |
170 |
|
|
171 |
< |
/* quick lookup table for conversion factors */ |
171 |
> |
/** quick lookup table for conversion factors */ |
172 |
|
static final int[] multipliers = { 1, 1000, 1000*1000, 1000*1000*1000 }; |
173 |
|
|
174 |
< |
/* the index of this unit */ |
174 |
> |
/** the index of this unit */ |
175 |
|
int index; |
176 |
|
|
177 |
|
/** private constructor */ |