|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tangosol.util.Base
com.tangosol.util.AbstractStableIterator
public abstract class AbstractStableIterator
An abstract Iterator implementation that is stable between the
hasNext()
and next()
methods, and between the next()
and remove()
methods.
Constructor Summary | |
---|---|
AbstractStableIterator()
Default constructor. |
Method Summary | |
---|---|
protected abstract void |
advance()
Advance to the next object. |
protected Object |
getPrevious()
Obtain the previous object provided by the Iterator. |
boolean |
hasNext()
Returns true if the iteration has more elements. |
Object |
next()
Returns the next element in the iteration. |
void |
remove()
Removes from the underlying collection the last element returned by the iterator. |
protected void |
remove(Object oPrev)
Remove the specified item. |
protected void |
setNext(Object oNext)
Specify the next object to provide from the Iterator. |
Constructor Detail |
---|
public AbstractStableIterator()
Method Detail |
---|
public boolean hasNext()
hasNext
in interface Iterator
public Object next()
next
in interface Iterator
NoSuchElementException
- if the Iterator has no more
elementspublic void remove()
remove
in interface Iterator
IllegalStateException
- if the next method has not
yet been called, or the remove method has already
been called after the last call to the next methodprotected Object getPrevious()
next()
protected void setNext(Object oNext)
oNext
- the next object to provide from the Iteratorprotected abstract void advance()
setNext(java.lang.Object)
if there is a next object.
protected void remove(Object oPrev)
remove()
method.
oPrev
- the previously iterated object that should be removed
UnsupportedOperationException
- if removal is not supported
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |