public class IndexedIterator<K>
extends java.lang.Object
implements java.util.Iterator<K>
| Constructor and Description |
|---|
IndexedIterator() |
IndexedIterator(java.util.Iterator<K> iterator) |
IndexedIterator(java.util.Iterator<K> iterator,
int startingIndex) |
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex()
Return the row index of the last object returned from next() or throw
an IllegalStateException if next() has not yet been called.
|
boolean |
hasNext() |
K |
next() |
void |
remove() |
public IndexedIterator()
public IndexedIterator(java.util.Iterator<K> iterator, int startingIndex)
public IndexedIterator(java.util.Iterator<K> iterator)
public int getIndex()
public boolean hasNext()
hasNext in interface java.util.Iterator<K>public void remove()
remove in interface java.util.Iterator<K>Copyright 2018 ICEsoft Technologies Canada Corp., All Rights Reserved.