Interface DurationValued

    • Method Detail

      • asDuration

        Duration asDuration()
        Gets the contained Duration value as a java.time.Duration.
        Returns:
        the contained value as a java.time.Duration. If null valued, as indicated by TokenValued.isNull(), null is returned.
      • asSeconds

        long asSeconds()
        Get the contained duration value as the number of seconds.
        Returns:
        the contained value as seconds. If null valued, as indicated by TokenValued.isNull(), 0 is returned.
        See Also:
        subsecNanos()
      • subsecNanos

        int subsecNanos()
        Get the subsecond portion of the contained duration value.
        Returns:
        the subsecond portion of the contained value, in nanoseconds. If null valued, as indicated by TokenValued.isNull(), 0 is returned.
        See Also:
        asSeconds()