⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
org.apache.commons.collections.iterators

Class AbstractMapIteratorDecorator

java.lang.Object
|
+--org.apache.commons.collections.iterators.AbstractMapIteratorDecorator

All Implemented Interfaces:
MapIterator


public class AbstractMapIteratorDecorator
extends java.lang.Object
implements MapIterator

Provides basic behaviour for decorating a map iterator with extra functionality.

All methods are forwarded to the decorated map iterator.

Since:
Commons Collections 3.0
Author:
Stephen Colebourne

Field Summary

MapIterator

iterator

The iterator being decorated

Constructor Summary

AbstractMapIteratorDecorator(MapIterator iterator)

Constructor that decorates the specified iterator.

Method Summary

Object

getKey()

MapIterator

getMapIterator()

Gets the iterator being decorated.

Object

getValue()

boolean

hasNext()

Object

next()

void

remove()

Object

setValue(Object obj)

Field Details

iterator

protected final MapIterator iterator

The iterator being decorated

Constructor Details

AbstractMapIteratorDecorator

public AbstractMapIteratorDecorator(MapIterator iterator)

Constructor that decorates the specified iterator.

Parameters:
iterator - the iterator to decorate, must not be null
Throws:
- if the collection is null

Method Details

getKey

public Object getKey()


getMapIterator

protected MapIterator getMapIterator()

Gets the iterator being decorated.

Returns:
the decorated iterator

getValue

public Object getValue()


hasNext

public boolean hasNext()


next

public Object next()


remove

public void remove()


setValue

public Object setValue(Object obj)

Parameters:
obj