public class PermutationGenerator<E>
extends java.lang.Object
implements java.util.Iterator<java.util.List<E>>
Constructor and Description |
---|
PermutationGenerator(java.util.Collection<E> items)
WARNING: Don't make n too large.
|
public PermutationGenerator(java.util.Collection<E> items)
items
- the items to permutepublic void reset()
public java.math.BigInteger getTotal()
public boolean hasNext()
hasNext
in interface java.util.Iterator<java.util.List<E>>
public java.util.List<E> next()
next
in interface java.util.Iterator<java.util.List<E>>
public void remove()
remove
in interface java.util.Iterator<java.util.List<E>>