Class 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 Detail

      • Duration

        public Duration​(Long seconds,
                        Long nanos)
    • Method Detail

      • 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object