Type
- private static class IndexMultiTableInteger.IteratorImpl<Type>
extends java.lang.Object
implements java.util.Iterator<Type>
IndexMultiTableInteger.iterator()
-call
produces one instance. It is possible to create some instances simultaneously.Modifier and Type | Field and Description |
---|---|
private boolean |
bHasNext
True if hasNext.
|
private boolean |
bHasNextProcessed
true if hasnext-test is done.
|
private IndexMultiTableInteger.IteratorHelper |
helper
The helper contains the values of the iterator.
|
private int |
lastkey
Only for test.
|
private int |
modcount |
Constructor and Description |
---|
IteratorImpl(IndexMultiTableInteger<Type> firstTable) |
IteratorImpl(IndexMultiTableInteger<Type> firstTable,
int startKey)
Ctor for the Iterator with a range.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
private void |
next_i()
executes the next(), on entry
bHasNextProcessed is false. |
Type |
next() |
void |
remove() |
private void |
stop() |
private IndexMultiTableInteger.IteratorHelper helper
private boolean bHasNext
bHasNextProcessed
is true.private boolean bHasNextProcessed
private int modcount
private int lastkey
IteratorImpl(IndexMultiTableInteger<Type> firstTable)
IteratorImpl(IndexMultiTableInteger<Type> firstTable, int startKey)
firstTable
- startKey
- endKey
- public boolean hasNext()
hasNext
in interface java.util.Iterator<Type>
private void next_i()
bHasNextProcessed
is false.
If the table is a child table and its end is reached, this routine is called recursively
with the now current parent, typical the parent contains a child table
because the table is a hyper table. Than the child helper is initialized
and reused, and this routine will be called a third time, now with the new child:
child: end of table; parent: next table; child: test next table.If the tree of tables is deeper than two, and the end of a child and also the parent table is reached, this routine is called recursively more as three times. The maximum of recursively call depends on the deepness of the table tree.
public void remove()
remove
in interface java.util.Iterator<Type>
private void stop()