java.util.Iterator<java.util.List<E>>public class PermutationGenerator<E>
extends java.lang.Object
implements java.util.Iterator<java.util.List<E>>
| Constructor | Description |
|---|---|
PermutationGenerator(java.util.Collection<E> items) |
WARNING: Don't make n too large.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.math.BigInteger |
getTotal() |
|
boolean |
hasNext() |
|
java.util.List<E> |
next() |
Generate next permutation (algorithm from Rosen p.
|
void |
remove() |
|
void |
reset() |
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<E>public java.util.List<E> next()
next in interface java.util.Iterator<E>public void remove()
remove in interface java.util.Iterator<E>