T - the type of the elements to be permutatedpublic class PermutationsHelper<T>
extends java.lang.Object
Lists of type T.| Constructor and Description |
|---|
PermutationsHelper() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.util.List<T>> |
getAll(java.util.List<T> elements)
Shorthand method for
getAll(List, int): fromElement==0. |
java.util.List<java.util.List<T>> |
getAll(java.util.List<T> elements,
int fromElement) |
public java.util.List<java.util.List<T>> getAll(java.util.List<T> elements, int fromElement)
elements - the elements to be permutatedfromElement - the fist element of the list the permutation should be calculated from (i.e. the prefix)List of permutations, i.e. a List of Listspublic java.util.List<java.util.List<T>> getAll(java.util.List<T> elements)
getAll(List, int): fromElement==0.elements - the elements to be permutatedList of permutations, i.e. a List of Lists