public class RangeDefinedDoubleSupplier extends java.lang.Object implements BatchDoubleSupplier
| Constructor and Description |
|---|
RangeDefinedDoubleSupplier(long seed,
double min,
double max) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
get(double[] buffer,
int limit) |
double |
getAsDouble() |
void |
reset()
Reset this input making this readable from the beginning
|
long |
skip(long count)
Skip some items.
|
public RangeDefinedDoubleSupplier(long seed,
double min,
double max)
public final double getAsDouble()
getAsDouble in interface java.util.function.DoubleSupplierpublic final int get(double[] buffer,
int limit)
get in interface BatchDoubleSupplierpublic final long skip(long count)
BatchDoubleSupplierskip in interface BatchDoubleSuppliercount - count of items should be skipped from the input streampublic final void reset()
BatchDoubleSupplierreset in interface BatchDoubleSupplierpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException