|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uwcse.collections.SimpleOpenHashMap.SimpleKeyIterator
This is an iterator over the keys of a hashtable. It lazily allocates current iterators for each bucket, until there are no more to allocate. This makes allocating the iterator very cheap, but advancing it somewhat more complicated.
Field Summary | |
(package private) int |
bucket
|
(package private) SimpleIterator |
iter
|
Constructor Summary | |
(package private) |
SimpleOpenHashMap.SimpleKeyIterator()
|
Method Summary | |
java.lang.Object |
getItem(SimpleOpenHashMap.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 |
|
Field Detail |
int bucket
SimpleIterator iter
Constructor Detail |
SimpleOpenHashMap.SimpleKeyIterator()
Method Detail |
public java.lang.Object getItem(SimpleOpenHashMap.Entry e)
public boolean hasNext()
SimpleIterator
hasNext
in interface SimpleIterator
public java.lang.Object next()
SimpleIterator
next
in interface SimpleIterator
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |