org.apache.commons.collections.iterators

Class AbstractMapIteratorDecorator

public class AbstractMapIteratorDecorator extends 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

Version: $Revision: 155406 $ $Date: 2005-02-26 12:55:26 +0000 (Sat, 26 Feb 2005) $

Author: Stephen Colebourne

Field Summary
protected MapIteratoriterator
The iterator being decorated
Constructor Summary
AbstractMapIteratorDecorator(MapIterator iterator)
Constructor that decorates the specified iterator.
Method Summary
ObjectgetKey()
protected MapIteratorgetMapIterator()
Gets the iterator being decorated.
ObjectgetValue()
booleanhasNext()
Objectnext()
voidremove()
ObjectsetValue(Object obj)

Field Detail

iterator

protected final MapIterator iterator
The iterator being decorated

Constructor Detail

AbstractMapIteratorDecorator

public AbstractMapIteratorDecorator(MapIterator iterator)
Constructor that decorates the specified iterator.

Parameters: iterator the iterator to decorate, must not be null

Throws: IllegalArgumentException if the collection is null

Method Detail

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)
Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.