| Modifier and Type | Method and Description |
|---|---|
static Duration |
Duration.days(long count)
Constructs a new
Duration object representing the specified amount of days. |
static Duration |
Duration.hours(long count)
Constructs a new
Duration object representing the specified amount of hours. |
static Duration |
Duration.microseconds(long count)
Constructs a new
Duration object representing the specified amount of microseconds. |
static Duration |
Duration.milliseconds(long count)
Constructs a new
Duration object representing the specified amount of milliseconds. |
static Duration |
Duration.minutes(long count)
Constructs a new
Duration object representing the specified amount of minutes. |
static Duration |
Duration.nanoseconds(long count)
Constructs a new
Duration object representing the specified amount of nanoseconds. |
static Duration |
Duration.parse(String duration)
Parses a given input string to a
Duration. |
static Duration |
Duration.seconds(long count)
Constructs a new
Duration object representing the specified amount of seconds. |
| Modifier and Type | Method and Description |
|---|---|
int |
Duration.compareTo(Duration other) |
Copyright © 2011. All rights reserved.