- <init>
Constructor for Duration.
- getValue
Getter for the field value.
- equals
- getTimeUnit
getTimeUnit.
- getValueInMS
Get the value in milliseconds.
- minus
Add a duration with the given time unit. For example:
new Duration(2, SECONDS).plus(Duration.FIVE_H
- compareTo
- divide
Divide this duration amount with the given amount
- getTimeUnitAsString
getTimeUnitAsString.
- getValueInNS
Get the value in nanoseconds.
- hashCode
- isForever
isForever.