Class OneOfCollectionGenerator<T>

    • Constructor Detail

      • OneOfCollectionGenerator

        public OneOfCollectionGenerator​(GeneratorContext context)
    • Method Detail

      • generate

        public T 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.

        Specified by:
        generate in interface Generator<T>
        Parameters:
        random - provider for random values
        Returns:
        generated value