Class SteppedRange


  • public class SteppedRange
    extends Object
    Implements a range with step information for a GUI.
    Author:
    nick
    • Constructor Detail

      • SteppedRange

        public SteppedRange​(double min,
                            double max,
                            double step)
        Creates a SteppedRange with the specified min, max and step values.
        Parameters:
        min -
        max -
        step -
    • Method Detail

      • contains

        public boolean contains​(double val)
        Gets whether or not the specified value is within the range ( >= min && <= max).
        Parameters:
        val -
        Returns:
        true if the specified val is within the range, otherwise false.
      • getMin

        public double getMin()
      • getMax

        public double getMax()
      • getStep

        public double getStep()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object