|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.net.cache.SimpleOverflowMap.KeyIterator
protected class SimpleOverflowMap.KeyIterator
An Iterator implementation that attempts to provide the most resilient and most up-to-date view of the keys in the OverflowMap. This means that it will avoid throwing a ConcurrentModificationException, and that it will attempt to directly use the underlying iterators available for the front and back maps.
Constructor Summary | |
---|---|
SimpleOverflowMap.KeyIterator() Default constructor. |
Method Summary | |
---|---|
protected boolean |
advance() Advance to the next key. |
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 |
useBackIterator() Switch to an iterator over the back map. |
protected void |
useDoneIterator() Switch to an iterator over nothing. |
protected void |
useFrontIterator() Switch to a snapshot iterator. |
protected void |
useSnapshotIterator() Switch to a snapshot iterator. |
Constructor Detail |
---|
public SimpleOverflowMap.KeyIterator()
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 boolean advance()
protected void useFrontIterator()
protected void useBackIterator()
protected void useSnapshotIterator()
protected void useDoneIterator()
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |