Class Duration

java.lang.Object
io.cucumber.messages.types.Duration

public final class Duration extends Object
Represents the Duration message in Cucumber's message protocol

The structure is pretty close of the Timestamp one. For clarity, a second type of message is used.

  • Constructor Details

    • Duration

      public Duration(Long seconds, Long nanos)
  • Method Details

    • getSeconds

      public Long getSeconds()
    • 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.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object