public class GenerateCombinations extends Object
Constructor and Description |
---|
GenerateCombinations() |
Modifier and Type | Method and Description |
---|---|
void |
generateCombinations()
Generate the wanted combinations according to the parameters set
in the
init method. |
List<int[]> |
getResults()
Retrieve the list of generated combinations.
|
void |
init(int range,
int[] values,
int setSize)
Initialize the generator.
|
public void init(int range, int[] values, int setSize)
range
- the number of input values to utilizevalues
- the input values to combinatorializesetSize
- the desired output set sizepublic void generateCombinations()
init
method.public List<int[]> getResults()
init
method is invoked.Copyright © 2020 Actian Corporation. All rights reserved.