Package org.paukov.combinatorics3
Class PermutationGenerator<T>
- java.lang.Object
-
- org.paukov.combinatorics3.PermutationGenerator<T>
-
public class PermutationGenerator<T> extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPermutationGenerator.TreatDuplicatesAs
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> booleanhasDuplicates(Collection<T> collection)IGenerator<List<T>>k(int length)IGenerator<List<T>>k(int length, PermutationGenerator.TreatDuplicatesAs treatAsIdentical)IGenerator<List<T>>simple()IGenerator<List<T>>simple(PermutationGenerator.TreatDuplicatesAs treatAsIdentical)IGenerator<List<T>>withRepetitions(int permutationLength)
-
-
-
Method Detail
-
hasDuplicates
public static <T> boolean hasDuplicates(Collection<T> collection)
-
simple
public IGenerator<List<T>> simple()
-
simple
public IGenerator<List<T>> simple(PermutationGenerator.TreatDuplicatesAs treatAsIdentical)
-
k
public IGenerator<List<T>> k(int length)
-
k
public IGenerator<List<T>> k(int length, PermutationGenerator.TreatDuplicatesAs treatAsIdentical)
-
withRepetitions
public IGenerator<List<T>> withRepetitions(int permutationLength)
-
-