Package com.tangosol.util
Class DeltaSet.DeltaIterator
- java.lang.Object
-
- com.tangosol.util.DeltaSet.DeltaIterator
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DeltaIterator()
Construct an iterator for a delta set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Returns true if the iteration has more elements.Object
next()
Returns the next element in the interation.void
remove()
Removes from the underlying Collection the last element returned by the Iterator .-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
Returns true if the iteration has more elements.
-
next
public Object next()
Returns the next element in the interation.- Specified by:
next
in interfaceIterator
- Throws:
NoSuchElementException
- iteration has no more elements.
-
remove
public void remove()
Removes from the underlying Collection the last element returned by the Iterator . This method can be called only once per call to next The behavior of an Iterator is unspecified if the underlying Collection is modified while the iteration is in progress in any way other than by calling this method. Optional operation.- Specified by:
remove
in interfaceIterator
- Throws:
IllegalStateException
- next has not yet been called, or remove has already been called after the last call to next.
-
-