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 Typ
    Methode
    Beschreibung
    default int
     
    <T extends @Nullable Object>
    Arbitrary<T>
    configure(Arbitrary<T> arbitrary, TypeUsage targetType)
    Configure a given arbitrary and return the configured instance.
    default int
    Determines the order in which a configurator will be applied in regards to other configurators.
  • Methodendetails

    • configure

      <T extends @Nullable Object> Arbitrary<T> configure(Arbitrary<T> arbitrary, TypeUsage targetType)
      Configure a given arbitrary and return the configured instance.
      Parameter:
      arbitrary - The arbitrary instance to be configured
      targetType - 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 is 100. Use lower values to enforce earlier application and higher values for later application.
      Gibt zurück:
      the order
    • compareTo

      default int compareTo(ArbitraryConfigurator other)
      Angegeben von:
      compareTo in Schnittstelle Comparable<ArbitraryConfigurator>