|
||||||||||
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.SRange
public class SRange
This class builds a stream around a numeric iteration.
Field Summary | |
---|---|
(package private) double |
current
the current value |
(package private) double |
end
the initial, final, and step values |
(package private) double |
start
the initial, final, and step values |
(package private) double |
step
the initial, final, and step values |
Fields inherited from class edu.iu.cnets.klatsch.stream.Stream |
---|
buffer |
Constructor Summary | |
---|---|
SRange(double start,
double end,
double step)
Builds a new stream from the given iteration parameters. |
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 |
---|
double start
double end
double step
double current
Constructor Detail |
---|
public SRange(double start, double end, double step)
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 |