public final class CombinatorProduct<T> extends CompositeIterator<T>
CombinatorProduct
implements the product combinator of iterators.iterators
Constructor and Description |
---|
CombinatorProduct() |
Modifier and Type | Method and Description |
---|---|
ru.ispras.microtesk.test.sequence.combinator.CombinatorBase<T> |
clone() |
boolean |
doNext()
The callback method called in the
next method. |
T |
getValue(int i)
The callback method called in the
value method. |
boolean |
hasValue() |
void |
init() |
void |
initialize(java.util.List<ru.ispras.testbase.knowledge.iterator.Iterator<T>> iterators) |
void |
next() |
void |
onInit()
The callback method called in the
init method. |
void |
stop() |
java.util.List<T> |
value() |
addIterator, addIterators, getIterators, removeIterator, removeIterators, setIterators, size
public void onInit()
init
method.public T getValue(int i)
value
method.i
- the iterator index.null
if the iterator has been exhausted,
i.e., no value is available).public boolean doNext()
next
method.false
iff it the combinator has been exhausted.public void initialize(java.util.List<ru.ispras.testbase.knowledge.iterator.Iterator<T>> iterators)
initialize
in interface Combinator<T>
public void init()
init
in interface ru.ispras.testbase.knowledge.iterator.Iterator<java.util.List<T>>
public boolean hasValue()
hasValue
in interface ru.ispras.testbase.knowledge.iterator.Iterator<java.util.List<T>>
public java.util.List<T> value()
value
in interface ru.ispras.testbase.knowledge.iterator.Iterator<java.util.List<T>>
public void next()
next
in interface ru.ispras.testbase.knowledge.iterator.Iterator<java.util.List<T>>
public void stop()
stop
in interface ru.ispras.testbase.knowledge.iterator.Iterator<java.util.List<T>>
public ru.ispras.microtesk.test.sequence.combinator.CombinatorBase<T> clone()
clone
in interface ru.ispras.testbase.knowledge.iterator.Iterator<java.util.List<T>>
clone
in class java.lang.Object