uwcse.collections
Class SimpleClosedHashMap.SimpleKeyIterator

java.lang.Object
  |
  +--uwcse.collections.SimpleClosedHashMap.SimpleKeyIterator
All Implemented Interfaces:
SimpleIterator
Direct Known Subclasses:
SimpleClosedHashMap.SimpleValueIterator
Enclosing class:
SimpleClosedHashMap

class SimpleClosedHashMap.SimpleKeyIterator
extends java.lang.Object
implements SimpleIterator

This is an iterator over the keys of a hashtable.


Field Summary
(package private)  int bucket
           
 
Constructor Summary
(package private) SimpleClosedHashMap.SimpleKeyIterator()
           
 
Method Summary
 java.lang.Object getItem(SimpleClosedHashMap.Entry e)
           
 boolean hasNext()
          Answer true iff there are more items to access.
 java.lang.Object next()
          Answer the current item AND advance the iterator to the next item.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bucket

int bucket
Constructor Detail

SimpleClosedHashMap.SimpleKeyIterator

SimpleClosedHashMap.SimpleKeyIterator()
Method Detail

getItem

public java.lang.Object getItem(SimpleClosedHashMap.Entry e)

hasNext

public boolean hasNext()
Description copied from interface: SimpleIterator
Answer true iff there are more items to access.
Specified by:
hasNext in interface SimpleIterator

next

public java.lang.Object next()
Description copied from interface: SimpleIterator
Answer the current item AND advance the iterator to the next item.
Specified by:
next in interface SimpleIterator