Class BitGenerator.Builder

java.lang.Object
io.bloviate.gen.AbstractBuilder<Integer>
io.bloviate.gen.BitGenerator.Builder
All Implemented Interfaces:
Builder<Integer>
Enclosing class:
BitGenerator

public static class BitGenerator.Builder extends AbstractBuilder<Integer>
Fluent builder for BitGenerator.
  • Constructor Details

    • Builder

      public Builder(RandomGenerator random)
      Creates a builder backed by the given seeded random source.
      Parameters:
      random - the random source used to draw generated values
  • Method Details

    • build

      public BitGenerator build()
      Description copied from interface: Builder
      Builds and returns a configured data generator.
      Returns:
      a new DataGenerator configured with the builder's settings