public static class Series.Range extends Series.Int
Series.Discrete, Series.Int, Series.Lines, Series.Range, Series.Separator
Constructor and Description |
---|
Range(int fst,
int ovr) |
Range(int fst,
int ovr,
int step)
The principal constructor for [fst, fst+step, fst+2*step, ...].
|
Range(Value.Int fst,
Value.Int ovr) |
Range(Value.Int fst,
Value.Int ovr,
Value.Int step) |
Modifier and Type | Method and Description |
---|---|
void |
advance()
Advance past the current element -- there might or might not
be any more; also see
Series.hasSome() . |
int |
elt_n()
The current element's int "code".
|
Value.Int |
elt()
See
elt_n() . |
boolean |
hasSome()
Is there at least a current element, (
Series.elt() )?
Also see Series.hasNone() . |
int |
position()
What position in the Series are we at (starting at zero)?
If
Series.hasNone() , the series was finite and position()
is now its length. |
java.lang.String |
toString()
Return a short String description of 'this' Series,
say for use in debugging.
|
merge, merge
asInt
public Range(int fst, int ovr)
public Range(int fst, int ovr, int step)
public int position()
Series
Series.hasNone()
, the series was finite and position()
is now its length.public boolean hasSome()
Series
Series.elt()
)?
Also see Series.hasNone()
.public Value.Int elt()
Series.Discrete
elt_n()
.elt
in class Series.Discrete
public int elt_n()
Series.Discrete
elt_n
in class Series.Discrete
public void advance()
Series
Series.hasSome()
.