|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjfun.util.yield.Continuator
public final class Continuator
This class implements java.util.Iterator using a jfun.util.Iterable. It transforms an internal iterator to an external iterator by using a background Thead.
Zephyr Business Solution
Constructor Summary | |
---|---|
Continuator(Iterable it)
Creates a Continuator object. |
Method Summary | |
---|---|
void |
close()
Closes the the iterator and releases all resources used in the iteration. |
boolean |
equals(java.lang.Object obj)
|
protected void |
finalize()
Cleans up the background thread. |
int |
hashCode()
|
boolean |
hasNext()
|
java.lang.Object |
next()
|
void |
remove()
Throws UnsupportedOperationException |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Continuator(Iterable it)
it
- the Iterable object.Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
protected void finalize()
finalize
in class java.lang.Object
public void close()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |