Class DurationRange

    • Constructor Detail

      • DurationRange

        public DurationRange()
    • Method Detail

      • setMinSeconds

        public void setMinSeconds​(Integer minSeconds)

        The minimum value of the duration range. Must be greater than zero.

        Parameters:
        minSeconds - The minimum value of the duration range. Must be greater than zero.
      • getMinSeconds

        public Integer getMinSeconds()

        The minimum value of the duration range. Must be greater than zero.

        Returns:
        The minimum value of the duration range. Must be greater than zero.
      • withMinSeconds

        public DurationRange withMinSeconds​(Integer minSeconds)

        The minimum value of the duration range. Must be greater than zero.

        Parameters:
        minSeconds - The minimum value of the duration range. Must be greater than zero.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setMaxSeconds

        public void setMaxSeconds​(Integer maxSeconds)

        The maximum value of the duration range. Must be less than or equal to 604800 seconds (1 week).

        Parameters:
        maxSeconds - The maximum value of the duration range. Must be less than or equal to 604800 seconds (1 week).
      • getMaxSeconds

        public Integer getMaxSeconds()

        The maximum value of the duration range. Must be less than or equal to 604800 seconds (1 week).

        Returns:
        The maximum value of the duration range. Must be less than or equal to 604800 seconds (1 week).
      • withMaxSeconds

        public DurationRange withMaxSeconds​(Integer maxSeconds)

        The maximum value of the duration range. Must be less than or equal to 604800 seconds (1 week).

        Parameters:
        maxSeconds - The maximum value of the duration range. Must be less than or equal to 604800 seconds (1 week).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object