|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgroovy.util.PermutationGenerator<E>
public class PermutationGenerator<E>
| Constructor Summary | |
|---|---|
PermutationGenerator(java.util.Collection<E> items)
WARNING: Don't make n too large. |
|
| Method Summary | |
|---|---|
java.math.BigInteger |
getTotal()
|
boolean |
hasNext()
|
java.util.List<E> |
next()
Generate next permutation (algorithm from Rosen p. |
void |
remove()
|
void |
reset()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PermutationGenerator(java.util.Collection<E> items)
items - the items to permute| Method Detail |
|---|
public 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>>
|
Copyright © 2003-2009 The Codehaus. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||