public class RangeDefinedLongSupplier extends java.lang.Object implements BatchLongSupplier
| Constructor and Description |
|---|
RangeDefinedLongSupplier(long seed,
long min,
long max) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
get(long[] buffer,
int limit) |
long |
getAsLong() |
void |
reset()
Reset this input making this readable from the beginning
|
long |
skip(long count)
Skip some items.
|
public RangeDefinedLongSupplier(long seed,
long min,
long max)
min - "unbounded" range will be used if Long.MAX_VALUE > max - minmax - "unbounded" range will be if less than minpublic final long getAsLong()
getAsLong in interface java.util.function.LongSupplierpublic final int get(long[] buffer,
int limit)
get in interface BatchLongSupplierpublic final long skip(long count)
BatchLongSupplierskip in interface BatchLongSuppliercount - count of items should be skipped from the input streampublic final void reset()
BatchLongSupplierreset in interface BatchLongSupplierpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException