Class ExhaustiveDomainGenerator

java.lang.Object
com.pholser.junit.quickcheck.generator.Generator<Object>
com.pholser.junit.quickcheck.internal.generator.ExhaustiveDomainGenerator
All Implemented Interfaces:
Gen<Object>, Shrink<Object>

public class ExhaustiveDomainGenerator extends Generator<Object>
  • Field Details

    • items

      private final Iterator<?> items
  • Constructor Details

    • ExhaustiveDomainGenerator

      public ExhaustiveDomainGenerator(Collection<?> items)
  • Method Details

    • generate

      public Object generate(SourceOfRandomness random, GenerationStatus status)
      Description copied from interface: Gen
      Generates a value, possibly influenced by a source of randomness and metadata about the generation.
      Parameters:
      random - source of randomness to be used when generating the value
      status - an object that can be used to influence the generated value. For example, generating lists can use the size method to generate lists with a given number of elements.
      Returns:
      the generated value
    • hasNext

      boolean hasNext()