org.apache.commons.collections.map
Class AbstractHashedMap.HashIterator<K,V>

java.lang.Object
  extended by org.apache.commons.collections.map.AbstractHashedMap.HashIterator<K,V>
Direct Known Subclasses:
AbstractHashedMap.EntrySetIterator, AbstractHashedMap.HashMapIterator, AbstractHashedMap.KeySetIterator, AbstractHashedMap.ValuesIterator
Enclosing class:
AbstractHashedMap<K,V>

protected abstract static class AbstractHashedMap.HashIterator<K,V>
extends Object

Base Iterator


Field Summary
protected  int expectedModCount
          The modification count expected
protected  int hashIndex
          The current index into the array of buckets
protected  AbstractHashedMap.HashEntry<K,V> last
          The last returned entry
protected  AbstractHashedMap.HashEntry<K,V> next
          The next entry
protected  AbstractHashedMap parent
          The parent map
 
Constructor Summary
protected AbstractHashedMap.HashIterator(AbstractHashedMap<K,V> parent)
           
 
Method Summary
protected  AbstractHashedMap.HashEntry<K,V> currentEntry()
           
 boolean hasNext()
           
protected  AbstractHashedMap.HashEntry<K,V> nextEntry()
           
 void remove()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

parent

protected final AbstractHashedMap parent
The parent map


hashIndex

protected int hashIndex
The current index into the array of buckets


last

protected AbstractHashedMap.HashEntry<K,V> last
The last returned entry


next

protected AbstractHashedMap.HashEntry<K,V> next
The next entry


expectedModCount

protected int expectedModCount
The modification count expected

Constructor Detail

AbstractHashedMap.HashIterator

protected AbstractHashedMap.HashIterator(AbstractHashedMap<K,V> parent)
Method Detail

hasNext

public boolean hasNext()

nextEntry

protected AbstractHashedMap.HashEntry<K,V> nextEntry()

currentEntry

protected AbstractHashedMap.HashEntry<K,V> currentEntry()

remove

public void remove()

toString

public String toString()
Overrides:
toString in class Object


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