net.jqwik.engine.properties.shrinking.FixedValueFlatMappedShrinkable Maven / Gradle / Ivy
The newest version!
package net.jqwik.engine.properties.shrinking;
import java.util.function.*;
import net.jqwik.api.*;
import org.jspecify.annotations.*;
public class FixedValueFlatMappedShrinkable extends FlatMappedShrinkable {
private final Supplier extends Shrinkable> shrinkableSupplier;
public FixedValueFlatMappedShrinkable(
Shrinkable toMap,
Function super T, ? extends Shrinkable> mapper,
Supplier extends Shrinkable> shrinkableSupplier
) {
super(toMap, mapper);
this.shrinkableSupplier = shrinkableSupplier;
}
@Override
protected Shrinkable shrinkable() {
return shrinkableSupplier.get();
}
}