DurationMethods
Provides extension methods for java.time.Duration
Value members
Concrete methods
Gets duration after multiplication.
Gets duration after multiplication.
- Value parameters:
- n
number by which duration is multiplied
Gets duration with specified amount added.
Gets duration with specified amount added.
- Value parameters:
- amount
duration to add
Gets duration with specified amount subtracted.
Gets duration with specified amount subtracted.
- Value parameters:
- amount
duration to subtract
Gets duration after division.
Gets duration after division.
- Value parameters:
- n
number by which duration is divided
Creates iterator to end duration (inclusive).
Creates iterator to end duration (inclusive).
- Value parameters:
- end
end duration
- Throws:
- IllegalArgumentException
if
step
is zero.
Creates iterator to end duration (exclusive).
Creates iterator to end duration (exclusive).
- Value parameters:
- end
end duration
Compares to other duration and returns the greater value.
Compares to other duration and returns the greater value.
- Value parameters:
- other
other duration