net.jqwik.engine.properties.PurelyRandomShrinkablesGenerator Maven / Gradle / Ivy
The newest version!
package net.jqwik.engine.properties;
import java.util.*;
import java.util.stream.*;
import net.jqwik.api.*;
import net.jqwik.api.providers.*;
class PurelyRandomShrinkablesGenerator {
private final List parameterGenerators;
PurelyRandomShrinkablesGenerator(List parameterGenerators) {
this.parameterGenerators = parameterGenerators;
}
List> generateNext(Random random) {
Map> generatorsCache = new LinkedHashMap<>();
return parameterGenerators
.stream()
.map(generator -> generator.next(random, generatorsCache))
.collect(Collectors.toList());
}
}