Package org.apache.batik.util
Class DoublyIndexedTable.TableIterator
- java.lang.Object
-
- org.apache.batik.util.DoublyIndexedTable.TableIterator
-
- All Implemented Interfaces:
java.util.Iterator
- Enclosing class:
- DoublyIndexedTable
protected class DoublyIndexedTable.TableIterator extends java.lang.Object implements java.util.IteratorAn Iterator class for aDoublyIndexedTable.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanfinishedWhether the Iterator has run out of elements.private DoublyIndexedTable.EntrynextEntryThe next Entry to return.private intnextIndexThe index of the next entry to return.
-
Constructor Summary
Constructors Constructor Description TableIterator()Creates a new TableIterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfindNext()Searches for the next Entry in the table.booleanhasNext()java.lang.Objectnext()voidremove()
-
-
-
Field Detail
-
nextIndex
private int nextIndex
The index of the next entry to return.
-
nextEntry
private DoublyIndexedTable.Entry nextEntry
The next Entry to return.
-
finished
private boolean finished
Whether the Iterator has run out of elements.
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator
-
next
public java.lang.Object next()
- Specified by:
nextin interfacejava.util.Iterator
-
findNext
protected void findNext()
Searches for the next Entry in the table.
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator
-
-