net.jqwik.engine.properties.shrinking.CombinedShrinkable Maven / Gradle / Ivy
package net.jqwik.engine.properties.shrinking;
import java.util.*;
import java.util.function.*;
import java.util.stream.*;
import net.jqwik.api.*;
import net.jqwik.engine.properties.arbitraries.*;
public class CombinedShrinkable implements Shrinkable {
private final List> shrinkables;
private final Function, T> combinator;
private final T value;
public CombinedShrinkable(List> shrinkables, Function, T> combinator) {
this.shrinkables = shrinkables;
this.combinator = combinator;
this.value = combinator.apply(toValues(shrinkables));
}
@Override
public T value() {
return value;
}
private List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy