org.deduced
Class PropertyValueMapEntryIterator<K,V>

java.lang.Object
  extended by org.deduced.PropertyValueMapEntryIterator<K,V>
Type Parameters:
K - the type of keys in the value map
V - the type of values in the map
All Implemented Interfaces:
java.util.Iterator<java.util.Map.Entry<K,V>>

 class PropertyValueMapEntryIterator<K,V>
extends java.lang.Object
implements java.util.Iterator<java.util.Map.Entry<K,V>>

Class used to browse a property collection that returns a Map.Entry object as next(). The value held in the map entry is the value held by the property in the property collection

Author:
Steve McDuff

Field Summary
private  PropertyCollection<K,V> collection
          the property collection represented by this Iterator
private  java.util.Iterator<K> keyIterator
          the iterator browsing the actual collection
 
Constructor Summary
PropertyValueMapEntryIterator(PropertyCollection<K,V> setCollection)
          constructor
 
Method Summary
 boolean hasNext()
          (non-Javadoc)
 java.util.Map.Entry<K,V> next()
          (non-Javadoc)
 void remove()
          (non-Javadoc)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

collection

private PropertyCollection<K,V> collection
the property collection represented by this Iterator


keyIterator

private java.util.Iterator<K> keyIterator
the iterator browsing the actual collection

Constructor Detail

PropertyValueMapEntryIterator

public PropertyValueMapEntryIterator(PropertyCollection<K,V> setCollection)
constructor

Parameters:
setCollection - the property collection represented by this Iterator
Method Detail

remove

public void remove()
(non-Javadoc)

Specified by:
remove in interface java.util.Iterator<java.util.Map.Entry<K,V>>
See Also:
Iterator.remove()

hasNext

public boolean hasNext()
(non-Javadoc)

Specified by:
hasNext in interface java.util.Iterator<java.util.Map.Entry<K,V>>
See Also:
Iterator.hasNext()

next

public java.util.Map.Entry<K,V> next()
(non-Javadoc)

Specified by:
next in interface java.util.Iterator<java.util.Map.Entry<K,V>>
See Also:
Iterator.next()