Class ReadOnlyIteratorAdapter<E>
java.lang.Object
com.gigaspaces.internal.utils.collections.ReadOnlyIteratorAdapter<E>
- All Implemented Interfaces:
ReadOnlyIterator<E>
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ReadOnlyIteratorAdapter
-
-
Method Details
-
hasNext
public boolean hasNext()Description copied from interface:ReadOnlyIteratorReturns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)- Specified by:
hasNextin interfaceReadOnlyIterator<E>- Returns:
- true if the iterator has more elements.
-
next
Description copied from interface:ReadOnlyIteratorReturns the next element in the iteration. Calling this method repeatedly until theReadOnlyIterator.hasNext()method returns false will return each element in the underlying collection exactly once.- Specified by:
nextin interfaceReadOnlyIterator<E>- Returns:
- the next element in the iteration.
-
close
public void close()Description copied from interface:ReadOnlyIteratorCloses the iterator- Specified by:
closein interfaceReadOnlyIterator<E>
-