|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An iterator which should be closed after use
Some iterators take up resources which should be free'd as soon as possible, i.e. without waiting for the garbage collector to call the the finalizer.
Implementors of this interface are expected to close automatically if if the iterator iterates to completion, i.e. more() will return false.
Method Summary | |
void |
close()
Close the iterator |
Methods inherited from interface java.util.Iterator |
hasNext, next, remove |
Method Detail |
public void close()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |