Interface ReadOnlyIterator<E>
- All Known Subinterfaces:
StorageReadOnlyIterator<E>
- All Known Implementing Classes:
EmptyStorageReadOnlyIterator,ReadOnlyIteratorAdapter,SqliteStorageLayer.RDBMSRedoLogIterator
public interface ReadOnlyIterator<E>
Acts as an
Iterator which supports only read operation, hence it does not contain the
remove operation- Since:
- 7.1
- Author:
- eitany
-
Method Summary
-
Method Details
-
hasNext
boolean hasNext()Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)- Returns:
- true if the iterator has more elements.
-
next
E next()Returns the next element in the iteration. Calling this method repeatedly until thehasNext()method returns false will return each element in the underlying collection exactly once.- Returns:
- the next element in the iteration.
- Throws:
NoSuchElementException- iteration has no more elements.
-
close
void close()Closes the iterator
-