public static < DATATYPE > void addAllPermutations ( @ Nonnull @ Nonempty final ICommonsList < DATATYPE > aInput , @ Nonnegative final int nSlotCount , @ Nonnull final Collection < ICommonsList < DATATYPE > > aResultList ) { for ( final ICommonsList < DATATYPE > aPermutation : new CombinationGenerator <> ( aInput , nSlotCount ) ) aResultList . ( aPermutation ) ; }
Fill a list with all permutations of the input elements .