T
- the type of the elements to be permutatedpublic class PermutationsHelper<T>
extends java.lang.Object
List
s of type T.Constructor and Description |
---|
PermutationsHelper() |
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 List
spublic 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 List
s