org.apache.commons.collections.iterators

Class UnmodifiableOrderedMapIterator

public final class UnmodifiableOrderedMapIterator extends Object implements OrderedMapIterator, Unmodifiable

Decorates an ordered map iterator such that it cannot be modified.

Since: Commons Collections 3.0

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

Author: Stephen Colebourne

Method Summary
static OrderedMapIteratordecorate(OrderedMapIterator iterator)
Decorates the specified iterator such that it cannot be modified.
ObjectgetKey()
ObjectgetValue()
booleanhasNext()
booleanhasPrevious()
Objectnext()
Objectprevious()
voidremove()
ObjectsetValue(Object value)

Method Detail

decorate

public static OrderedMapIterator decorate(OrderedMapIterator iterator)
Decorates the specified iterator such that it cannot be modified.

Parameters: iterator the iterator to decorate

Throws: IllegalArgumentException if the iterator is null

getKey

public Object getKey()

getValue

public Object getValue()

hasNext

public boolean hasNext()

hasPrevious

public boolean hasPrevious()

next

public Object next()

previous

public Object previous()

remove

public void remove()

setValue

public Object setValue(Object value)
Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.