E - the type of the elementspublic final class PermutationIterable<E> extends java.lang.Object implements java.lang.Iterable<RubyArray<E>>
PermutationIterable generates all permutations into a List with
length n.| Constructor and Description |
|---|
PermutationIterable(java.util.List<? extends E> list,
int n)
Creates a
PermutationIterable. |
public PermutationIterable(java.util.List<? extends E> list, int n)
PermutationIterable.list - a Listn - length of each permutationjava.lang.NullPointerException - if list is null