Class Range


  • public class Range
    extends Object
    This class contains methods to generate array of values based on a range
    • Constructor Detail

      • Range

        public Range()
    • Method Detail

      • ofIntegers

        public static int[] ofIntegers​(int from,
                                       int step,
                                       int numValues)
        Creates a range of int values
        Parameters:
        from - Initial value
        step - Step size
        numValues - Number of values of the range
        Returns:
        Int array with the range
      • ofDoubles

        public static double[] ofDoubles​(double from,
                                         double step,
                                         int numValues)
        Creates a range of double values
        Parameters:
        from - Initial value
        step - Step size
        numValues - Number of values of the range
        Returns:
        Double array with the range