|
JTemporal Home Tutorial |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CloseableIterator<V>
An iterator the should be closed as soon it is not used anymore.
This is useful to avoid waiting the garbage collection to free resources,
such as database resources.
| Method Summary | |
|---|---|
void |
close()
Closes the iterator. |
boolean |
hasNext()
As soon the method returns false the cursor is
automatically closed. |
boolean |
isOpen()
Checks whether the iterator is open, or already closed. |
| Methods inherited from interface java.util.Iterator |
|---|
next, remove |
| Method Detail |
|---|
void close()
boolean isOpen()
true if the cursor is open.boolean hasNext()
false the cursor is
automatically closed.
hasNext in interface java.util.Iterator<V>Iterator.hasNext()
|
JTemporal Home Tutorial |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||