Package net.jqwik.api.configurators
Interface ArbitraryConfigurator
- 
- All Superinterfaces:
- java.lang.Comparable<ArbitraryConfigurator>
 - All Known Implementing Classes:
- ArbitraryConfiguratorBase
 
 @API(status=MAINTAINED, since="1.0") public interface ArbitraryConfigurator extends java.lang.Comparable<ArbitraryConfigurator>Implementors can modify any arbitrary before it's being used for value generation. Most implementations use ArbitraryConfiguratorBase to derive fromImplementations must be registered in /META-INF/services/net.jqwik.api.configurators.ArbitraryConfiguratorso that they will be automatically considered for arbitrary configuration.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default intcompareTo(ArbitraryConfigurator other)<T> Arbitrary<T>configure(Arbitrary<T> arbitrary, TypeUsage targetType)Configure a givenarbitraryand return the configured instance.default intorder()Determines the order in which a configurator will be applied in regards to other configurators.
 
- 
- 
- 
Method Detail- 
configure<T> Arbitrary<T> configure(Arbitrary<T> arbitrary, TypeUsage targetType) Configure a givenarbitraryand return the configured instance.- Parameters:
- arbitrary- The arbitrary instance to be configured
- targetType- The type of the object to be generated by the arbitrary
- Returns:
- the newly configured arbitrary instance
 
 - 
orderdefault int order() Determines the order in which a configurator will be applied in regards to other configurators. Default value is100. Use lower values to enforce earlier application and higher values for later application.- Returns:
- the order
 
 - 
compareTodefault int compareTo(ArbitraryConfigurator other) - Specified by:
- compareToin interface- java.lang.Comparable<ArbitraryConfigurator>
 
 
- 
 
-