public class Duration extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
long |
value(TimeUnit tu)
Return the value of this Duration in the given units of time
|
public static final Duration ZERO
public Duration(long duration, TimeUnit tu)
duration
- The value of the Durationtu
- The unit of time the given value is to be expressed inpublic long value(TimeUnit tu)
tu
- The unit of time return the value inCopyright © 2016. All Rights Reserved.