|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectMapIterator
public class MapIterator
This class implements the Iterator
interface for accessing the set of
values stored in a Map
.
Constructor Summary | |
---|---|
MapIterator(Map map)
Create the Iterator for the given Map |
Method Summary | |
---|---|
boolean |
hasNext()
Advance to the next value in the Map . |
Object |
next()
Advance to the next item in the Map |
void |
remove()
Remove the current item in the iterator. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapIterator(Map map)
Iterator
for the given Map
map
- Method Detail |
---|
public boolean hasNext()
Map
.
hasNext
in interface Iterator
true
if there is a next item; false
otherwisepublic Object next()
Map
next
in interface Iterator
NoSuchElementException
- if the map has no more elementspublic void remove()
remove
in interface Iterator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |