public abstract class CompositeIterator<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List<ru.ispras.testbase.knowledge.iterator.Iterator<T>> |
iterators
The sub-iterators (i.e., iterators to be combined or composed).
|
Constructor and Description |
---|
CompositeIterator() |
Modifier and Type | Method and Description |
---|---|
void |
addIterator(ru.ispras.testbase.knowledge.iterator.Iterator<T> iterator)
Adds the sub-iterator into the list.
|
void |
addIterators(java.util.List<ru.ispras.testbase.knowledge.iterator.Iterator<T>> iterators)
Adds the sub-iterators into the list.
|
java.util.List<ru.ispras.testbase.knowledge.iterator.Iterator<T>> |
getIterators()
Returns the list of sub-iterators.
|
void |
removeIterator(int i)
Removes the i-th sub-iterator from the list.
|
void |
removeIterators()
Removes all sub-iterators from the list.
|
void |
setIterators(java.util.List<ru.ispras.testbase.knowledge.iterator.Iterator<T>> iterators)
Sets the sub-iterators.
|
int |
size()
Returns the number of iterators in the list.
|
protected java.util.List<ru.ispras.testbase.knowledge.iterator.Iterator<T>> iterators
public java.util.List<ru.ispras.testbase.knowledge.iterator.Iterator<T>> getIterators()
public void addIterator(ru.ispras.testbase.knowledge.iterator.Iterator<T> iterator)
iterator
- the sub-iterator to be added to the list.public void addIterators(java.util.List<ru.ispras.testbase.knowledge.iterator.Iterator<T>> iterators)
iterators
- the sub-iterators to be added to the list.public void setIterators(java.util.List<ru.ispras.testbase.knowledge.iterator.Iterator<T>> iterators)
iterators
- the sub-iterators to be set.public void removeIterator(int i)
i
- the index of the sub-iterator to be removed from the list.public void removeIterators()
public int size()