|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.larkc.core.data.iterator.SimpleCloseableIterator<T>
public class SimpleCloseableIterator<T>
Constructor Summary | |
---|---|
SimpleCloseableIterator(java.util.Iterator<T> iterator)
|
Method Summary | |
---|---|
void |
close()
Closes the current iterator and all subsequent operations will raise exception. |
boolean |
hasNext()
Checks whether the next result could be returned. |
boolean |
isClosed()
Verifies if the current iterator is closed. |
T |
next()
Fetches the next result from the iterator. |
void |
remove()
Removes the current item from the iterated collection. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleCloseableIterator(java.util.Iterator<T> iterator)
Method Detail |
---|
public void close()
CloseableIterator
close
in interface CloseableIterator<T>
public boolean hasNext()
CloseableIterator
hasNext
in interface CloseableIterator<T>
hasNext
in interface java.util.Iterator<T>
public T next()
CloseableIterator
next
in interface CloseableIterator<T>
next
in interface java.util.Iterator<T>
public void remove()
CloseableIterator
remove
in interface CloseableIterator<T>
remove
in interface java.util.Iterator<T>
public boolean isClosed()
CloseableIterator
isClosed
in interface CloseableIterator<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |