org.deduced
Class PropertyCollectionKeyIterator<K,V>

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

public class PropertyCollectionKeyIterator<K,V>
extends java.lang.Object
implements java.util.Iterator<K>

Iterator used to browse a property collection and return the keys

Author:
Steve McDuff

Field Summary
private  PropertyCollection<K,V> collection
          the collection to browse
private  K currentkey
          the current key pointed by the iterator
private  java.util.Iterator<K> keyIterator
          the iterator in the actual collection
 
Constructor Summary
PropertyCollectionKeyIterator(PropertyCollection<K,V> setCollection, java.util.Iterator<K> setKeyIterator)
          constructor
 
Method Summary
 boolean hasNext()
          (non-Javadoc)
 K 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 collection to browse


keyIterator

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


currentkey

private K currentkey
the current key pointed by the iterator

Constructor Detail

PropertyCollectionKeyIterator

public PropertyCollectionKeyIterator(PropertyCollection<K,V> setCollection,
                                     java.util.Iterator<K> setKeyIterator)
constructor

Parameters:
setCollection - the collection to browse
setKeyIterator - the key iterator backing the actual property collection
Method Detail

remove

public void remove()
(non-Javadoc)

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

hasNext

public boolean hasNext()
(non-Javadoc)

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

next

public K next()
(non-Javadoc)

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