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.support.*;
public class CombinedShrinkable implements Shrinkable {
private final List> parts;
private final Function, T> combinator;
public CombinedShrinkable(List> parts, Function, T> combinator) {
this.parts = parts;
this.combinator = combinator;
}
@Override
public T value() {
return createValue(parts);
}
private T createValue(List> shrinkables) {
return combinator.apply(createValues(shrinkables));
}
private List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy