@API(status=MAINTAINED,
since="1.0")
public interface ArbitraryConfigurator
extends java.lang.Comparable<ArbitraryConfigurator>
Implementations must be registered in /META-INF/services/net.jqwik.api.configurators.ArbitraryConfigurator
so that they will be automatically considered for arbitrary configuration.
| Modifier and Type | Method and Description |
|---|---|
default int |
compareTo(ArbitraryConfigurator other) |
<T> Arbitrary<T> |
configure(Arbitrary<T> arbitrary,
TypeUsage targetType)
Configure a given
arbitrary and return the configured instance. |
default int |
order()
Determines the order in which a configurator will be applied in regards to other configurators.
|
<T> Arbitrary<T> configure(Arbitrary<T> arbitrary, TypeUsage targetType)
arbitrary and return the configured instance.arbitrary - The arbitrary instance to be configuredtargetType - The type of the object to be generated by the arbitrarydefault int order()
100. Use lower values to enforce earlier application and
higher values for later application.default int compareTo(ArbitraryConfigurator other)
compareTo in interface java.lang.Comparable<ArbitraryConfigurator>