net.jqwik.engine.properties.arbitraries.exhaustive.CombinedExhaustiveGenerator Maven / Gradle / Ivy
The newest version!
package net.jqwik.engine.properties.arbitraries.exhaustive;
import java.util.*;
import java.util.function.*;
import java.util.stream.*;
import net.jqwik.api.*;
import net.jqwik.engine.support.*;
import org.jspecify.annotations.*;
class CombinedExhaustiveGenerator implements ExhaustiveGenerator {
private final Long maxCount;
private final List> arbitraries;
private final Function super List>, ? extends R> combinator;
static Optional calculateMaxCount(List> arbitraries, long maxNumberOfSamples) {
long product = 1;
for (Arbitrary