protected class DoublyIndexedTable.TableIterator
extends java.lang.Object
implements java.util.Iterator
DoublyIndexedTable
.Modifier and Type | Field and Description |
---|---|
private boolean |
finished
Whether the Iterator has run out of elements.
|
private DoublyIndexedTable.Entry |
nextEntry
The next Entry to return.
|
private int |
nextIndex
The index of the next entry to return.
|
Constructor and Description |
---|
TableIterator()
Creates a new TableIterator.
|
Modifier and Type | Method and Description |
---|---|
protected void |
findNext()
Searches for the next Entry in the table.
|
boolean |
hasNext() |
java.lang.Object |
next() |
void |
remove() |
private int nextIndex
private DoublyIndexedTable.Entry nextEntry
private boolean finished
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
protected void findNext()
public void remove()
remove
in interface java.util.Iterator