Modifier and Type | Interface and Description |
---|---|
interface |
JumpableUniformRandomProvider
Applies to generators that can be advanced a large number of
steps of the output sequence in a single operation.
|
interface |
LongJumpableUniformRandomProvider
Applies to generators that can be advanced a very large number of
steps of the output sequence in a single operation.
|
interface |
RestorableUniformRandomProvider
Applies to generators whose internal state can be saved and restored.
|
interface |
SplittableUniformRandomProvider
Applies to generators that can be split into two objects (the original and a new instance)
each of which implements the same interface (and can be recursively split indefinitely).
|
Modifier and Type | Method and Description |
---|---|
UniformRandomProvider |
JumpableUniformRandomProvider.jump()
Creates a copy of the UniformRandomProvider and then advances the
state of the current instance.
|
Modifier and Type | Method and Description |
---|---|
default Stream<UniformRandomProvider> |
JumpableUniformRandomProvider.jumps()
Returns an effectively unlimited stream of new random generators, each of which
implements the
UniformRandomProvider interface. |
default Stream<UniformRandomProvider> |
JumpableUniformRandomProvider.jumps(long streamSize)
Returns a stream producing the given
streamSize number of new random
generators, each of which implements the UniformRandomProvider
interface. |
Modifier and Type | Method and Description |
---|---|
SplittableUniformRandomProvider |
SplittableUniformRandomProvider.split(UniformRandomProvider source)
Creates a new random generator, split off from this one, that implements
the
SplittableUniformRandomProvider interface. |
Copyright © 2016–2022 The Apache Software Foundation. All rights reserved.