org.paukov.combinatorics3.Generator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of combinatoricslib3 Show documentation
Show all versions of combinatoricslib3 Show documentation
Simple java library to generate permutations, combinations and other combinatorial sequences
/**
* Combinatorics Library 3
* Copyright 2016 Dmytro Paukov [email protected]
*/
package org.paukov.combinatorics3;
import java.util.Arrays;
import java.util.Collection;
public class Generator {
public static CombinationGenerator combination(T... args) {
return new CombinationGenerator<>(Arrays.asList(args));
}
public static CombinationGenerator combination(Collection collection) {
return new CombinationGenerator<>(collection);
}
public static PermutationGenerator permutation(T... args) {
return new PermutationGenerator<>(Arrays.asList(args));
}
public static PermutationGenerator permutation(Collection collection) {
return new PermutationGenerator<>(collection);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy