|
JTemporal Home Tutorial |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.jtemporal.util.EmptyIterator
public class EmptyIterator
Immutable empty read-only iterator (singleton).
For methods description, see java.util.Iterator
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
void |
close()
Closes the iterator. |
static EmptyIterator |
getInstance()
Given that the iterator is stateless, this is a singleton. |
boolean |
hasNext()
As soon the method returns false the cursor is
automatically closed. |
boolean |
isOpen()
Checks whether the iterator is open, or already closed. |
java.lang.Object |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static EmptyIterator getInstance()
public boolean hasNext()
CloseableIteratorfalse the cursor is
automatically closed.
hasNext in interface java.util.IteratorhasNext in interface CloseableIteratorIterator.hasNext()public java.lang.Object next()
next in interface java.util.Iteratorpublic void remove()
remove in interface java.util.Iteratorpublic void close()
CloseableIterator
close in interface CloseableIteratorpublic boolean isOpen()
CloseableIterator
isOpen in interface CloseableIteratortrue if the cursor is open.public java.lang.Object clone()
clone in class java.lang.Object
|
JTemporal Home Tutorial |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||