net.walend.collection
Class AbstractHashMap.HashIterator

java.lang.Object
  |
  +--net.walend.collection.AbstractHashMap.HashIterator
All Implemented Interfaces:
java.util.Iterator
Direct Known Subclasses:
AbstractHashMap.EntryIterator, AbstractHashMap.KeyIterator, AbstractHashMap.ValueIterator
Enclosing class:
AbstractHashMap

private abstract class AbstractHashMap.HashIterator
extends java.lang.Object
implements java.util.Iterator

General purpose iterator.


Field Summary
private  AbstractHashMap.Entry entry
           
private  int expectedModCount
          The modCount value that the iterator believes that the backing List should have.
private  int index
           
private  AbstractHashMap.Entry lastReturned
           
 
Constructor Summary
private AbstractHashMap.HashIterator()
           
 
Method Summary
 boolean hasNext()
           
protected  AbstractHashMap.Entry nextEntry()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Iterator
next
 

Field Detail

index

private int index

entry

private AbstractHashMap.Entry entry

lastReturned

private AbstractHashMap.Entry lastReturned

expectedModCount

private int expectedModCount
The modCount value that the iterator believes that the backing List should have. If this expectation is violated, the iterator has detected concurrent modification.

Constructor Detail

AbstractHashMap.HashIterator

private AbstractHashMap.HashIterator()
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator

nextEntry

protected AbstractHashMap.Entry nextEntry()


Copyright (c) 2000, 2001, David Walend