Class DoubleRange

    • Method Detail

      • min

        public double min()
        Return the minimum value of the double range.
        Returns:
        the minimum value of the double range
      • max

        public double max()
        Return the maximum value of the double range.
        Returns:
        the maximum value of the double range
      • of

        public static DoubleRange of​(double min,
                                     double max)
        Create a new DoubleRange object with the given min and max values.
        Parameters:
        min - the lower bound of the double range
        max - the upper bound of the double range
        Returns:
        a new DoubleRange object
        Throws:
        IllegalArgumentException - if min > max