|
JTemporal Home Tutorial |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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()
CloseableIterator
false
the cursor is
automatically closed.
hasNext
in interface java.util.Iterator
hasNext
in interface CloseableIterator
Iterator.hasNext()
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
public void close()
CloseableIterator
close
in interface CloseableIterator
public boolean isOpen()
CloseableIterator
isOpen
in interface CloseableIterator
true
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 |