19 |
|
* @since 1.5 |
20 |
|
* @author Doug Lea |
21 |
|
*/ |
22 |
< |
public interface Delayed extends Comparable { |
22 |
> |
public interface Delayed extends Comparable<Delayed> { |
23 |
|
|
24 |
|
/** |
25 |
< |
* Returns the delay associated with this object, in the given time unit. |
25 |
> |
* Returns the remaining delay associated with this object, in the |
26 |
> |
* given time unit. |
27 |
|
* |
28 |
|
* @param unit the time unit |
29 |
< |
* @return the delay; zero or negative values indicate that the |
30 |
< |
* delay has already elapsed |
29 |
> |
* @return the remaining delay; zero or negative values indicate |
30 |
> |
* that the delay has already elapsed |
31 |
|
*/ |
32 |
|
long getDelay(TimeUnit unit); |
33 |
|
} |