public class Sequence
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected int |
high |
protected int |
low |
protected int |
value |
Constructor and Description |
---|
Sequence()
Creates a sequence with the interval [1, Integere.MAX_VALUE] (inclusive)
|
Sequence(int low,
int high) |
Modifier and Type | Method and Description |
---|---|
int |
next()
Returns the next value of the sequence.
|
int |
value()
Returns the current value of the sequence (the value that will be returned by next()).
|