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.
|