Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.tangosol.util
Class AbstractKeySetBasedMap.KeyIterator

    java.lang.Object
      com.tangosol.util.Base
          com.tangosol.util.AbstractStableIterator
              com.tangosol.util.AbstractKeySetBasedMap.KeyIterator

All Implemented Interfaces:
  java.util.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(java.util.Iterator iter)` Construct a KeyIterator.

Method Summary
`protected void` | `advance()` Advance to the next object.
`protected void` | `remove(java.lang.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(java.util.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(java.lang.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

Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2010, Oracle. All rights reserved.