Duration |
Duration.abs() |
Returns a copy of this duration with a positive length.
|
static Duration |
Duration.between(Temporal startInclusive,
Temporal endExclusive) |
Obtains an instance of Duration representing the duration between two instants.
|
Duration |
Duration.dividedBy(long divisor) |
Returns a copy of this duration divided by the specified value.
|
static Duration |
Duration.from(TemporalAmount amount) |
Obtains an instance of Duration from an amount.
|
Duration |
Duration.minus(long amountToSubtract,
TemporalUnit unit) |
Returns a copy of this duration with the specified duration subtracted.
|
Duration |
Duration.minus(Duration duration) |
Returns a copy of this duration with the specified duration subtracted.
|
Duration |
Duration.minusDays(long daysToSubtract) |
Returns a copy of this duration with the specified duration in 24 hour days subtracted.
|
Duration |
Duration.minusHours(long hoursToSubtract) |
Returns a copy of this duration with the specified duration in hours subtracted.
|
Duration |
Duration.minusMillis(long millisToSubtract) |
Returns a copy of this duration with the specified duration in milliseconds subtracted.
|
Duration |
Duration.minusMinutes(long minutesToSubtract) |
Returns a copy of this duration with the specified duration in minutes subtracted.
|
Duration |
Duration.minusNanos(long nanosToSubtract) |
Returns a copy of this duration with the specified duration in nanoseconds subtracted.
|
Duration |
Duration.minusSeconds(long secondsToSubtract) |
Returns a copy of this duration with the specified duration in seconds subtracted.
|
Duration |
Duration.multipliedBy(long multiplicand) |
Returns a copy of this duration multiplied by the scalar.
|
Duration |
Duration.negated() |
Returns a copy of this duration with the length negated.
|
static Duration |
Duration.of(long amount,
TemporalUnit unit) |
Obtains an instance of Duration from a duration in the specified unit.
|
static Duration |
Duration.ofDays(long days) |
Obtains an instance of Duration from a number of standard 24 hour days.
|
static Duration |
Duration.ofHours(long hours) |
Obtains an instance of Duration from a number of standard length hours.
|
static Duration |
Duration.ofMillis(long millis) |
Obtains an instance of Duration from a number of milliseconds.
|
static Duration |
Duration.ofMinutes(long minutes) |
Obtains an instance of Duration from a number of standard length minutes.
|
static Duration |
Duration.ofNanos(long nanos) |
Obtains an instance of Duration from a number of nanoseconds.
|
static Duration |
Duration.ofSeconds(long seconds) |
Obtains an instance of Duration from a number of seconds.
|
static Duration |
Duration.ofSeconds(long seconds,
long nanoAdjustment) |
Obtains an instance of Duration from a number of seconds
and an adjustment in nanoseconds.
|
static Duration |
Duration.parse(CharSequence text) |
Obtains a Duration from a text string such as PnDTnHnMn.nS .
|
Duration |
Duration.plus(long amountToAdd,
TemporalUnit unit) |
Returns a copy of this duration with the specified duration added.
|
Duration |
Duration.plus(Duration duration) |
Returns a copy of this duration with the specified duration added.
|
Duration |
Duration.plusDays(long daysToAdd) |
Returns a copy of this duration with the specified duration in 24 hour days added.
|
Duration |
Duration.plusHours(long hoursToAdd) |
Returns a copy of this duration with the specified duration in hours added.
|
Duration |
Duration.plusMillis(long millisToAdd) |
Returns a copy of this duration with the specified duration in milliseconds added.
|
Duration |
Duration.plusMinutes(long minutesToAdd) |
Returns a copy of this duration with the specified duration in minutes added.
|
Duration |
Duration.plusNanos(long nanosToAdd) |
Returns a copy of this duration with the specified duration in nanoseconds added.
|
Duration |
Duration.plusSeconds(long secondsToAdd) |
Returns a copy of this duration with the specified duration in seconds added.
|
Duration |
Duration.withNanos(int nanoOfSecond) |
Returns a copy of this duration with the specified nano-of-second.
|
Duration |
Duration.withSeconds(long seconds) |
Returns a copy of this duration with the specified amount of seconds.
|