java.util
Class HashMap.HashIterator

java.lang.Object
  |
  +--java.util.HashMap.HashIterator

private class HashMap.HashIterator
extends Object
implements Iterator


Field Summary
(package private)  HashMap.Entry entry
           
private  int expectedModCount
          The modCount value that the iterator believes that the backing List should have.
(package private)  int index
           
(package private)  HashMap.Entry lastReturned
           
(package private)  HashMap.Entry[] table
           
(package private)  int type
           
 
Constructor Summary
(package private) HashMap.HashIterator(int type)
           
 
Method Summary
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

table

HashMap.Entry[] table

index

int index

entry

HashMap.Entry entry

lastReturned

HashMap.Entry lastReturned

type

int type

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

HashMap.HashIterator

HashMap.HashIterator(int type)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public Object next()
Specified by:
next in interface Iterator

remove

public void remove()
Specified by:
remove in interface Iterator