uwcse.collections
Class SimpleListMap.SimpleKeyIterator

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

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

This is an iterator over the keys of a hashtable.


Field Summary
(package private)  SimpleIterator iter
           
 
Constructor Summary
(package private) SimpleListMap.SimpleKeyIterator()
           
 
Method Summary
 java.lang.Object getItem(SimpleListMap.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

iter

SimpleIterator iter
Constructor Detail

SimpleListMap.SimpleKeyIterator

SimpleListMap.SimpleKeyIterator()
Method Detail

getItem

public java.lang.Object getItem(SimpleListMap.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