public class LinearIntGenerator extends java.lang.Object implements IntGenerator
| Modifier and Type | Field and Description |
|---|---|
private int |
start
Start value.
|
private int |
step
Step size.
|
private int |
stop
Stop value.
|
| Constructor and Description |
|---|
LinearIntGenerator(int start,
int step,
int stop)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
forEach(java.util.function.IntConsumer c)
Process the entire series once.
|
int |
getMax()
Maximum value of the stream.
|
int |
getMin()
Minimum value of the stream.
|
java.lang.StringBuilder |
serializeTo(java.lang.StringBuilder buf)
Produce a textual representation.
|
java.lang.String |
toString() |
private int start
private int step
private int stop
public LinearIntGenerator(int start,
int step,
int stop)
start - Start valuestep - Step sizestop - Stop value (inclusive, if reachable by step size)public int getMin()
IntGeneratorgetMin in interface IntGeneratorpublic int getMax()
IntGeneratorgetMax in interface IntGeneratorpublic void forEach(java.util.function.IntConsumer c)
IntGeneratorforEach in interface IntGeneratorc - Consumerpublic java.lang.StringBuilder serializeTo(java.lang.StringBuilder buf)
IntGeneratorserializeTo in interface IntGeneratorbuf - Output buffer.public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2019 ELKI Development Team. License information.