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

net.jqwik.engine.properties.configurators.ScaleConfigurator Maven / Gradle / Ivy

The newest version!
package net.jqwik.engine.properties.configurators;

import net.jqwik.api.arbitraries.*;
import net.jqwik.api.configurators.*;
import net.jqwik.api.constraints.*;

public class ScaleConfigurator extends ArbitraryConfiguratorBase {

	public BigDecimalArbitrary configure(BigDecimalArbitrary arbitrary, Scale scale) {
		return arbitrary.ofScale(scale.value());
	}

	public DoubleArbitrary configure(DoubleArbitrary arbitrary, Scale scale) {
		return arbitrary.ofScale(scale.value());
	}

	public FloatArbitrary configure(FloatArbitrary arbitrary, Scale scale) {
		return arbitrary.ofScale(scale.value());
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy