Class DoubleRange

    • Constructor Detail

      • DoubleRange

        public DoubleRange​(double min,
                           double max)
        Construct a range.
        Parameters:
        min - the min value.
        max - the max value.
    • Method Detail

      • equals

        @Pure
        public boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • hashCode

        @Pure
        public int hashCode()
        Overrides:
        hashCode in class Object
      • getMin

        @Pure
        public double getMin()
        Replies the minimum value.
        Returns:
        the minimum value.
      • getMax

        @Pure
        public double getMax()
        Replies the maximum value.
        Returns:
        the maximum value.
      • contains

        @Pure
        public boolean contains​(double value)
        Replies if the value is inside the range.
        Parameters:
        value - the value.
        Returns:
        true if the value is in the range; false otherwise.