Skip navigation links

Oracle® Coherence Java API Reference
Release 3.6.0.0

E15725-01


com.tangosol.util
Class SafeHashMap.EntrySet.EntrySetIterator

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.util.AbstractStableIterator
          extended by com.tangosol.util.SafeHashMap.EntrySet.EntrySetIterator

All Implemented Interfaces:
Iterator
Enclosing class:
SafeHashMap.EntrySet

protected class SafeHashMap.EntrySet.EntrySetIterator
extends AbstractStableIterator

An Iterator over the EntrySet that is backed by the SafeHashMap.


Constructor Summary
protected SafeHashMap.EntrySet.EntrySetIterator()
          Construct an Iterator over the Entries in the SafeHashMap.

 

Method Summary
protected  void advance()
          Advance to the next object.
protected  void deactivate()
          Shut down the Iterator.
protected  void remove(Object oPrev)
          Remove the specified item.

 

Methods inherited from class com.tangosol.util.AbstractStableIterator
getPrevious, hasNext, next, remove, setNext

 

Constructor Detail

SafeHashMap.EntrySet.EntrySetIterator

protected SafeHashMap.EntrySet.EntrySetIterator()
Construct an Iterator over the Entries in the SafeHashMap. Special care must be taken to handle the condition in which the SafeHashMap is currently resizing.

Method Detail

advance

protected void advance()
Advance to the next object.
Specified by:
advance in class AbstractStableIterator

remove

protected void remove(Object oPrev)
Remove the specified item. <p/> This is an optional operation. If the Iterator supports element removal, then it should implement this method, which is delegated to by the AbstractStableIterator.remove() method.
Overrides:
remove in class AbstractStableIterator
Parameters:
oPrev - the previously iterated object that should be removed

deactivate

protected void deactivate()
Shut down the Iterator. This is done on exhaustion of the contents of the Iterator, or on finalization of the Iterator.

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.6.0.0

E15725-01


Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved.