All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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> 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