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

net.jqwik.engine.properties.shrinking.FixedValueFlatMappedShrinkable Maven / Gradle / Ivy

There is a newer version: 1.9.1
Show newest version
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