protected static class

AbstractHashedMap.HashMapIterator

extends AbstractHashedMap.HashIterator
implements MapIterator
java.lang.Object
   ↳ org.apache.commons.collections.map.AbstractHashedMap.HashIterator
     ↳ org.apache.commons.collections.map.AbstractHashedMap.HashMapIterator

Class Overview

MapIterator implementation.

Summary

[Expand]
Inherited Fields
From class org.apache.commons.collections.map.AbstractHashedMap.HashIterator
Protected Constructors
AbstractHashedMap.HashMapIterator(AbstractHashedMap parent)
Public Methods
Object getKey()
Gets the current key, which is the key returned by the last call to next().
Object getValue()
Gets the current value, which is the value associated with the last key returned by next().
Object next()
Gets the next key from the Map.
Object setValue(Object value)
Sets the value associated with the current key (optional operation).
[Expand]
Inherited Methods
From class org.apache.commons.collections.map.AbstractHashedMap.HashIterator
From class java.lang.Object
From interface java.util.Iterator
From interface org.apache.commons.collections.MapIterator

Protected Constructors

protected AbstractHashedMap.HashMapIterator (AbstractHashedMap parent)

Public Methods

public Object getKey ()

Gets the current key, which is the key returned by the last call to next().

Returns
  • the current key

public Object getValue ()

Gets the current value, which is the value associated with the last key returned by next().

Returns
  • the current value

public Object next ()

Gets the next key from the Map.

Returns
  • the next key in the iteration

public Object setValue (Object value)

Sets the value associated with the current key (optional operation).

Parameters
value the new value
Returns
  • the previous value