Class RandomProviderDefaultState

  • All Implemented Interfaces:
    RandomProviderState

    public class RandomProviderDefaultState
    extends java.lang.Object
    implements RandomProviderState
    Wraps the internal state of a generator instance. Its purpose is to store all the data needed to recover the same state in order to restart a sequence where it left off. External code should not try to modify the data contained in instances of this class.
    Since:
    1.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte[] state
      Internal state.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getState()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • state

        private final byte[] state
        Internal state.
    • Constructor Detail

      • RandomProviderDefaultState

        public RandomProviderDefaultState​(byte[] state)
        Initializes an instance. The contents of the state argument is unspecified, and is guaranteed to be valid only if it was generated by implementations provided by this library.
        Parameters:
        state - Mapping of all the data which an implementation of UniformRandomProvider needs in order to reset its internal state.
    • Method Detail

      • getState

        public byte[] getState()
        Returns:
        the internal state.