Class BufferedSeedGenerator

  • All Implemented Interfaces:
    SeedGenerator, Serializable

    public class BufferedSeedGenerator
    extends Object
    implements SeedGenerator
    A seed generator that wraps another, maintaining a buffer of previously-fetched bytes to reduce the number of I/O calls. The buffer is only used when the requested seed is strictly smaller than the buffer.
    See Also:
    Serialized Form
    • Constructor Detail

      • BufferedSeedGenerator

        public BufferedSeedGenerator​(SeedGenerator delegate,
                                     int size)
        Creates an instance.
        Parameters:
        delegate - the SeedGenerator to wrap
        size - the buffer size in bytes