CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation

com.tangosol.util
Class AbstractKeySetBasedMap.KeyIterator

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.util.AbstractStableIterator
          extended by com.tangosol.util.AbstractKeySetBasedMap.KeyIterator
All Implemented Interfaces:
Iterator
Enclosing class:
AbstractKeySetBasedMap

public class AbstractKeySetBasedMap.KeyIterator
extends AbstractStableIterator

An iterator over the keys from the internal key Set that implements element removal via the Map's removeBlind method.


Constructor Summary
protected AbstractKeySetBasedMap.KeyIterator(Iterator iter)
          Construct a KeyIterator.
 
Method Summary
protected  void advance()
          Advance to the next object.
protected  void remove(Object oPrev)
          Remove the specified item.
 
Methods inherited from class com.tangosol.util.AbstractStableIterator
getPrevious, hasNext, next, remove, setNext
 

Constructor Detail

AbstractKeySetBasedMap.KeyIterator

protected AbstractKeySetBasedMap.KeyIterator(Iterator iter)
Construct a KeyIterator.

Parameters:
iter - the underlying Iterator from the internal key Set
Method Detail

advance

protected void advance()
Advance to the next object.

This method must be implemented by the concrete sub-class by calling AbstractStableIterator.setNext(java.lang.Object) if there is a next object.

Specified by:
advance in class AbstractStableIterator

remove

protected void remove(Object oPrev)
Remove the specified item.

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

CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation