Skip to content

Commit

Permalink
Update comments to the CombinationGenerator.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaukov committed Feb 20, 2024
1 parent 13d6bdb commit 0180037
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,17 @@ public class CombinationGenerator<T> {

/**
* Creates a generator to produce combinations of the given length of elements.
* @param length The length of the generated combinations.
* @return The requested generator.
*/
public IGenerator<List<T>> simple(int length) {
return new SimpleCombinationGenerator<>(originalVector, length);
}

/**
* Creates a generator to produce combinations with repetitions of the given length of elements.
* @param length The length of the generated combinations.
* @return The requested generator.
*/
public IGenerator<List<T>> multi(int length) {
return new MultiCombinationGenerator<>(originalVector, length);
Expand Down

0 comments on commit 0180037

Please sign in to comment.