@ Nonnull public static < DATATYPE > ICommonsList < ICommonsList < DATATYPE > > getAllPermutations ( @ Nonnull @ Nonempty final ICommonsList < DATATYPE > aInput , @ Nonnegative final int nSlotCount ) { final ICommonsList < ICommonsList < DATATYPE > > aResultList = new CommonsArrayList <> ( ) ; addAllPermutations ( aInput , nSlotCount , aResultList ) ; return aResultList ; }
Get a list of all permutations of the input elements .