net.infonode.util.collection.map
Class MapAdapter.Iterator

java.lang.Object
  extended by net.infonode.util.collection.map.MapAdapter.Iterator
All Implemented Interfaces:
ConstMapIterator, MapIterator
Enclosing class:
MapAdapter

private static class MapAdapter.Iterator
extends java.lang.Object
implements MapIterator


Field Summary
private  java.util.Iterator iterator
           
private  java.util.Map.Entry nextEntry
           
 
Constructor Summary
MapAdapter.Iterator(java.util.Iterator iterator)
           
 
Method Summary
 boolean atEntry()
          Returns true if the iterator points to an entry in the map.
 java.lang.Object getKey()
          Returns the key at the current map entry.
 java.lang.Object getValue()
          Returns the value at the current map entry.
 void next()
          Advance the iterator to the next entry.
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iterator

private java.util.Iterator iterator

nextEntry

private java.util.Map.Entry nextEntry
Constructor Detail

MapAdapter.Iterator

MapAdapter.Iterator(java.util.Iterator iterator)
Method Detail

remove

public void remove()
Specified by:
remove in interface MapIterator

atEntry

public boolean atEntry()
Description copied from interface: ConstMapIterator
Returns true if the iterator points to an entry in the map.

Specified by:
atEntry in interface ConstMapIterator
Returns:
true if the iterator points to an entry in the map

getKey

public java.lang.Object getKey()
Description copied from interface: ConstMapIterator
Returns the key at the current map entry.

Specified by:
getKey in interface ConstMapIterator
Returns:
the key at the current map entry

getValue

public java.lang.Object getValue()
Description copied from interface: ConstMapIterator
Returns the value at the current map entry.

Specified by:
getValue in interface ConstMapIterator
Returns:
the value at the current map entry

next

public void next()
Description copied from interface: ConstMapIterator
Advance the iterator to the next entry.

Specified by:
next in interface ConstMapIterator