Package io.cucumber.messages.types
Class Duration
- java.lang.Object
-
- io.cucumber.messages.types.Duration
-
public class Duration extends Object
The structure is pretty close of the Timestamp one. For clarity, a second type of message is used.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)LonggetNanos()Non-negative fractions of a second at nanosecond resolution.LonggetSeconds()(Required)inthashCode()voidsetNanos(Long nanos)Non-negative fractions of a second at nanosecond resolution.voidsetSeconds(Long seconds)(Required)StringtoString()
-
-
-
Method Detail
-
getSeconds
public Long getSeconds()
(Required)
-
setSeconds
public void setSeconds(Long seconds)
(Required)
-
getNanos
public Long getNanos()
Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive. (Required)
-
setNanos
public void setNanos(Long nanos)
Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive. (Required)
-
-