org.apache.commons.collections.map
Class AbstractLinkedMap.KeySetIterator<K,V>

java.lang.Object
  extended by org.apache.commons.collections.map.AbstractLinkedMap.LinkIterator<K,V>
      extended by org.apache.commons.collections.map.AbstractLinkedMap.KeySetIterator<K,V>
All Implemented Interfaces:
Iterator<K>, OrderedIterator<K>, ResettableIterator<K>
Enclosing class:
AbstractLinkedMap<K,V>

protected static class AbstractLinkedMap.KeySetIterator<K,V>
extends AbstractLinkedMap.LinkIterator<K,V>
implements OrderedIterator<K>, ResettableIterator<K>

KeySet iterator.


Field Summary
 
Fields inherited from class org.apache.commons.collections.map.AbstractLinkedMap.LinkIterator
expectedModCount, last, next, parent
 
Constructor Summary
protected AbstractLinkedMap.KeySetIterator(AbstractLinkedMap<K,V> parent)
           
 
Method Summary
 K next()
           
 K previous()
          Gets the previous element from the collection.
 
Methods inherited from class org.apache.commons.collections.map.AbstractLinkedMap.LinkIterator
currentEntry, hasNext, hasPrevious, nextEntry, previousEntry, remove, reset, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.commons.collections.OrderedIterator
hasPrevious
 
Methods inherited from interface java.util.Iterator
hasNext, remove
 
Methods inherited from interface org.apache.commons.collections.ResettableIterator
reset
 
Methods inherited from interface java.util.Iterator
hasNext, remove
 

Constructor Detail

AbstractLinkedMap.KeySetIterator

protected AbstractLinkedMap.KeySetIterator(AbstractLinkedMap<K,V> parent)
Method Detail

next

public K next()
Specified by:
next in interface Iterator<K>

previous

public K previous()
Description copied from interface: OrderedIterator
Gets the previous element from the collection.

Specified by:
previous in interface OrderedIterator<K>
Returns:
the previous key in the iteration


Copyright © 2005-2005 Apache Software Foundation, Matt Hall, John Watkinson. All Rights Reserved.