public class EmptyStorageReadOnlyIterator<T> extends Object implements StorageReadOnlyIterator<T>
StorageReadOnlyIterator
that acts as an empty iteratorConstructor 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()
StorageReadOnlyIterator
hasNext
in interface StorageReadOnlyIterator<T>
public T next()
StorageReadOnlyIterator
StorageReadOnlyIterator.hasNext()
method returns false will return each element in the underlying collection
exactly once.next
in interface StorageReadOnlyIterator<T>
public void close() throws StorageException
StorageReadOnlyIterator
close
in interface StorageReadOnlyIterator<T>
StorageException
Copyright © GigaSpaces.