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

Class UnmodifiableMapIterator

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

All Implemented Interfaces:
MapIterator, Unmodifiable


public final class UnmodifiableMapIterator
extends java.lang.Object
implements MapIterator, Unmodifiable

Decorates a map iterator such that it cannot be modified.
Since:
Commons Collections 3.0
Author:
Stephen Colebourne

Method Summary

static MapIterator

decorate(MapIterator iterator)

Decorates the specified iterator such that it cannot be modified.

Object

getKey()

Object

getValue()

boolean

hasNext()

Object

next()

void

remove()

Object

setValue(Object value)

Method Details

decorate

public static MapIterator decorate(MapIterator iterator)

Decorates the specified iterator such that it cannot be modified.

Parameters:
iterator - the iterator to decorate
Throws:
- if the iterator is null

getKey

public Object getKey()


getValue

public Object getValue()


hasNext

public boolean hasNext()


next

public Object next()


remove

public void remove()


setValue

public Object setValue(Object value)

Parameters:
value