public class PermutationGenerator<E> extends Object implements Iterator<List<E>>
| Constructor | Description |
|---|---|
PermutationGenerator(Iterable<E> items) |
|
PermutationGenerator(Collection<E> items) |
WARNING: Don't make n too large.
|
| Modifier and Type | Method | Description |
|---|---|---|
BigInteger |
getTotal() |
|
boolean |
hasNext() |
|
List<E> |
next() |
Generate next permutation (algorithm from Rosen p.
|
void |
remove() |
|
void |
reset() |
forEachRemainingpublic PermutationGenerator(Collection<E> items)
items - the items to permutepublic void reset()
public BigInteger getTotal()