public final class PermutatorExhaustive<T>
extends java.lang.Object
PermutatorExhaustive
implements an exhaustive permutator that produces all
possible permutations for a given tuple. The implementation is based on Heap's algorithm.Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<T> |
original |
protected java.util.ArrayList<T> |
sequence |
Constructor and Description |
---|
PermutatorExhaustive() |
Modifier and Type | Method and Description |
---|---|
PermutatorExhaustive<T> |
clone() |
boolean |
hasValue() |
void |
init() |
void |
initialize(java.util.List<T> original) |
void |
next() |
void |
stop() |
java.util.List<T> |
value() |
protected java.util.ArrayList<T> original
protected java.util.ArrayList<T> sequence
public void init()
public boolean hasValue()
public java.util.List<T> value()
public void next()
public void stop()
public PermutatorExhaustive<T> clone()
clone
in interface ru.ispras.testbase.knowledge.iterator.Iterator<java.util.List<T>>
public final void initialize(java.util.List<T> original)
initialize
in interface Permutator<T>