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