protected static class

AbstractLinkedMap.LinkMapIterator

extends AbstractLinkedMap.LinkIterator
implements OrderedMapIterator
java.lang.Object
   ↳ org.apache.commons.collections.map.AbstractLinkedMap.LinkIterator
     ↳ org.apache.commons.collections.map.AbstractLinkedMap.LinkMapIterator

Class Overview

MapIterator implementation.

Summary

[Expand]
Inherited Fields
From class org.apache.commons.collections.map.AbstractLinkedMap.LinkIterator
Protected Constructors
AbstractLinkedMap.LinkMapIterator(AbstractLinkedMap 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 previous()
Gets the previous 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.AbstractLinkedMap.LinkIterator
From class java.lang.Object
From interface java.util.Iterator
From interface org.apache.commons.collections.MapIterator
From interface org.apache.commons.collections.OrderedIterator
From interface org.apache.commons.collections.OrderedMapIterator
From interface org.apache.commons.collections.ResettableIterator

Protected Constructors

protected AbstractLinkedMap.LinkMapIterator (AbstractLinkedMap 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 previous ()

Gets the previous key from the Map.

Returns
  • the previous 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