java.lang.Object
io.ciera.runtime.api.types.Duration
- All Implemented Interfaces:
Serializable
The Duration class represents a period of time. It is represented as a
quantity of nanoseconds. Durations can be represented as ISO-8601 strings.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongstatic DurationfromString(String s) Parse an ISO-8601 duration string.longgetValue()toString()Override the 'toString' method to produce an ISO-8601 compliant duration string.
-
Field Details
-
ZERO
Default value
-
-
Constructor Details
-
Duration
public Duration() -
Duration
public Duration(long value) -
Duration
-
Duration
-
-
Method Details
-
getValue
public long getValue() -
toString
Override the 'toString' method to produce an ISO-8601 compliant duration string. -
fromString
Parse an ISO-8601 duration string.- Parameters:
s- The input string- Returns:
- an instance of Duration representative of the input string.
-
add
-
add
-
subtract
-
multiply
-
divide
-
divide
-