net.jqwik.engine.properties.shrinking.FixedValueFlatMappedShrinkable Maven / Gradle / Ivy
package net.jqwik.engine.properties.shrinking;
import java.util.function.*;
import net.jqwik.api.*;
public class FixedValueFlatMappedShrinkable extends FlatMappedShrinkable {
private final Supplier> shrinkableSupplier;
public FixedValueFlatMappedShrinkable(
Shrinkable toMap,
Function> mapper,
Supplier> shrinkableSupplier
) {
super(toMap, mapper);
this.shrinkableSupplier = shrinkableSupplier;
}
@Override
protected Shrinkable shrinkable() {
return shrinkableSupplier.get();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy