public class ReadOnlyIteratorAdapter<E> extends Object implements ReadOnlyIterator<E>
Constructor and Description |
---|
ReadOnlyIteratorAdapter(Iterator<E> iterator) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the iterator
|
boolean |
hasNext()
Returns true if the iteration has more elements.
|
E |
next()
Returns the next element in the iteration.
|
public boolean hasNext()
ReadOnlyIterator
hasNext
in interface ReadOnlyIterator<E>
public E next()
ReadOnlyIterator
ReadOnlyIterator.hasNext()
method returns false will return each element in the underlying collection
exactly once.next
in interface ReadOnlyIterator<E>
public void close()
ReadOnlyIterator
close
in interface ReadOnlyIterator<E>
Copyright © GigaSpaces.