Class RangeSet

    • Constructor Detail

      • RangeSet

        public RangeSet​(int stop)
        Constructs a range set for a sequence of numbers, starting at 0 with the value to stop. Equivalent to constructing the range set with: RangeSet(0, stop, 1).
        Parameters:
        stop - the point at which to stop the range (exclusive).
      • RangeSet

        public RangeSet​(int start,
                        int stop)
        Constructs a range set for the specified range of integers with a step of 1. Equivalent to constructing the range set with: RangeSet(start, stop, 1).
        Parameters:
        start - the start of the range (inclusive).
        stop - the point at which to stop the range (exclusive).
      • RangeSet

        public RangeSet​(int start,
                        int stop,
                        int step)
        Constructs a range set for the specified range of integers and increment.
        Parameters:
        start - the start of the range, inclusive.
        stop - the point at which to stop the range (exclusive).
        step - the step to increment for each value in the range.
        Throws:
        IllegalArgumentException - if step is 0.