Package net.jqwik.api.configurators
Schnittstelle ArbitraryConfigurator
- Alle Superschnittstellen:
Comparable<ArbitraryConfigurator>
- Alle bekannten Implementierungsklassen:
ArbitraryConfiguratorBase
@API(status=MAINTAINED,
since="1.0")
public interface ArbitraryConfigurator
extends Comparable<ArbitraryConfigurator>
Implementors can modify any arbitrary before it's being used for value generation.
Most implementations use ArbitraryConfiguratorBase to derive from
Implementations must be registered in /META-INF/services/net.jqwik.api.configurators.ArbitraryConfigurator
so that they will be automatically considered for arbitrary configuration.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdefault int
compareTo
(ArbitraryConfigurator other) Configure a givenarbitrary
and return the configured instance.default int
order()
Determines the order in which a configurator will be applied in regards to other configurators.
-
Methodendetails
-
configure
Configure a givenarbitrary
and return the configured instance.- Parameter:
arbitrary
- The arbitrary instance to be configuredtargetType
- The type of the object to be generated by the arbitrary- Gibt zurück:
- the newly configured arbitrary instance
-
order
default 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.- Gibt zurück:
- the order
-
compareTo
- Angegeben von:
compareTo
in SchnittstelleComparable<ArbitraryConfigurator>
-