Interface DurationSettable

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void set​(long seconds, int nanos)
      Sets the container to a directed duration value specified as seconds and nanoseconds.
      void set​(Duration value)
      Sets the container to a duration value specified as a java.time.Duration object.
    • Method Detail

      • set

        void set​(Duration value)
        Sets the container to a duration value specified as a java.time.Duration object.
        Parameters:
        value - duration value to which to set the container
      • set

        void set​(long seconds,
                 int nanos)
        Sets the container to a directed duration value specified as seconds and nanoseconds.
        Parameters:
        seconds - number of seconds in duration
        nanos - fractional nanosecond portion of duration