public class Duration extends Object
| Constructor and Description |
|---|
Duration(long length,
TimeUnit timeUnit) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
long |
toDays()
Returns the Duration in days.
|
long |
toHours()
Returns the Duration in hours.
|
long |
toMillis()
Returns the Duration in milliseconds.
|
long |
toMinutes()
Returns the Duration in minutes.
|
long |
toNanos()
Returns the Duration in nanoseconds.
|
long |
toSeconds()
Returns the Duration in seconds.
|
String |
toString() |
public static final Duration NONE
public Duration(long length,
TimeUnit timeUnit)
public long toNanos()
public long toMillis()
public long toSeconds()
public long toMinutes()
public long toHours()
public long toDays()
Copyright © 2018. All rights reserved.