|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.iu.cnets.klatsch.stream.Stream
edu.iu.cnets.klatsch.stream.SIterator
public class SIterator
This class wraps a stream around an iterator of Value
objects.
Field Summary | |
---|---|
(package private) java.util.Iterator<?> |
iter
the iterator we're using |
Fields inherited from class edu.iu.cnets.klatsch.stream.Stream |
---|
buffer |
Constructor Summary | |
---|---|
SIterator(java.util.Iterator<?> iter)
Builds a new stream from the given iterator. |
Method Summary | |
---|---|
boolean |
done()
Sees whether we're at the end of the stream. |
Value |
getNext()
Gets the next value in the list, if possible. |
java.lang.String |
toString()
Provides an indication of internal state. |
Methods inherited from class edu.iu.cnets.klatsch.stream.Stream |
---|
current, get |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
java.util.Iterator<?> iter
Constructor Detail |
---|
public SIterator(java.util.Iterator<?> iter)
Method Detail |
---|
public Value getNext() throws EvaluationException
getNext
in class Stream
EvaluationException
public boolean done()
done
in class Stream
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 |