T
- Type of the sample.public interface ObjectSampler<T>
Modifier and Type | Method and Description |
---|---|
T |
sample()
Create an object sample.
|
default Stream<T> |
samples()
Returns an effectively unlimited stream of object sample values.
|
default Stream<T> |
samples(long streamSize)
Returns a stream producing the given
streamSize number of object
sample values. |
default Stream<T> samples()
The default implementation produces a sequential stream that repeatedly
calls sample
().
default Stream<T> samples(long streamSize)
streamSize
number of object
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.Copyright © 2016–2022 The Apache Software Foundation. All rights reserved.