Class IndexValues

  • All Implemented Interfaces:
    Iterable<int[]>

    public class IndexValues
    extends Object
    implements Iterable<int[]>
    Used to iterate through all possible combination of array index values given the array lengths. This can be useful for generating unit test cases.
    • Constructor Detail

      • IndexValues

        public IndexValues​(int... lengths)
        Constructs an Iterable for all possible combination of array index values given the array lengths. This can be useful for generating unit test cases.
        Parameters:
        lengths - array lengths