public class Duration extends Object
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 © 2015. All Rights Reserved.