Class BooleanGenerator

java.lang.Object
org.instancio.generator.AbstractGenerator<Boolean>
org.instancio.generator.lang.BooleanGenerator
All Implemented Interfaces:
Generator<Boolean>, GeneratorSpec<Boolean>

public class BooleanGenerator extends AbstractGenerator<Boolean>
  • Constructor Details

  • Method Details

    • generate

      public Boolean generate(Random random)
      Description copied from interface: Generator
      Returns a generated value.

      If the generated value is random, it needs to be generated using the given Random instance. This ensures the data is generated with the same seed value and allows random data to be reproduced by specifying the seed value.

      Parameters:
      random - provider for random values
      Returns:
      generated value
    • getHints

      public GeneratedHints getHints()
      Description copied from interface: Generator
      Returns hints, including collection sizes and whether values are nullable.
      Returns:
      generated hints