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()
ReadOnlyIteratorhasNext in interface ReadOnlyIterator<E>public E next()
ReadOnlyIteratorReadOnlyIterator.hasNext() method returns false will return each element in the underlying collection
 exactly once.next in interface ReadOnlyIterator<E>public void close()
ReadOnlyIteratorclose in interface ReadOnlyIterator<E>Copyright © GigaSpaces.