public class EmptyStorageReadOnlyIterator<T> extends Object implements StorageReadOnlyIterator<T>
StorageReadOnlyIterator that acts as an empty iterator| Constructor and Description |
|---|
EmptyStorageReadOnlyIterator() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the iterator
|
boolean |
hasNext()
Returns true if the iteration has more elements.
|
T |
next()
Returns the next element in the iteration.
|
public boolean hasNext()
StorageReadOnlyIteratorhasNext in interface StorageReadOnlyIterator<T>public T next()
StorageReadOnlyIteratorStorageReadOnlyIterator.hasNext() method returns false will return each element in the underlying collection
exactly once.next in interface StorageReadOnlyIterator<T>public void close()
throws StorageException
StorageReadOnlyIteratorclose in interface StorageReadOnlyIterator<T>StorageExceptionCopyright © GigaSpaces.