public interface RestorableUniformRandomProvider extends UniformRandomProvider
Modifier and Type | Method and Description |
---|---|
void |
restoreState(RandomProviderState state)
Restores the state of a generator.
|
RandomProviderState |
saveState()
Saves the state of a generator.
|
doubles, doubles, doubles, doubles, ints, ints, ints, ints, longs, longs, longs, longs, nextBoolean, nextBytes, nextBytes, nextDouble, nextDouble, nextDouble, nextFloat, nextFloat, nextFloat, nextInt, nextInt, nextInt, nextLong, nextLong, nextLong
RandomProviderState saveState()
restore
method.UnsupportedOperationException
- if the underlying source of
randomness does not support this functionality.void restoreState(RandomProviderState state)
state
- State which this instance will be set to.
This parameter would usually have been obtained by a call to
saveState
performed either on the same
object as this one, or an object of the exact same class.UnsupportedOperationException
- if the underlying source of
randomness does not support this functionality.IllegalArgumentException
- if it was detected that the
state
argument is incompatible with this instance.Copyright © 2016–2022 The Apache Software Foundation. All rights reserved.