public interface DiscreteSampler
int.| Modifier and Type | Method and Description |
|---|---|
int |
sample()
Creates an
int sample. |
default IntStream |
samples()
Returns an effectively unlimited stream of
int sample values. |
default IntStream |
samples(long streamSize)
Returns a stream producing the given
streamSize number of int
sample values. |
int sample()
int sample.default IntStream samples()
int sample values.
The default implementation produces a sequential stream that repeatedly
calls sample().
int values.default IntStream samples(long streamSize)
streamSize number of int
sample values.
The default implementation produces a sequential stream that repeatedly
calls sample(); the stream is limited to the given streamSize.
streamSize - Number of values to generate.int values.Copyright © 2016–2022 The Apache Software Foundation. All rights reserved.