Package net.jqwik.api

Klasse Builders.CombinableBuilder<B,T extends @Nullable Object>

java.lang.Object
net.jqwik.api.Builders.CombinableBuilder<B,T>
Typparameter:
B - The builder's type
Umschließende Klasse:
Builders

public static class Builders.CombinableBuilder<B,T extends @Nullable Object> extends Object
Functionality to manipulate a builder. Instances are created through Builders.BuilderCombinator.use(Arbitrary).
  • Methodendetails

    • withProbability

      public Builders.CombinableBuilder<B,T> withProbability(double probabilityOfUse)
      Set probability for using this arbitrary
      Parameter:
      probabilityOfUse - Must be between 0.0 and 1.0
      Gibt zurück:
      Builders.BuilderCombinator instance
    • in

      public Builders.BuilderCombinator<B> in(BiFunction<? super B,? super T,? extends B> toFunction)
      Use the last provided arbitrary to change the builder object. Potentially create a different kind of builder.
      Parameter:
      toFunction - Use value provided by arbitrary to set current builder and return builder of same type.
      Gibt zurück:
      new Builders.BuilderCombinator instance
    • inSetter

      public Builders.BuilderCombinator<B> inSetter(BiConsumer<? super B,? super T> setter)
      Use the last provided arbitrary to change the builder object and proceed with the same builder. The most common scenario is a builder the methods of which do not return a new builder.
      Parameter:
      setter - Use value provided by arbitrary to change a builder's property.
      Gibt zurück:
      new Builders.BuilderCombinator instance with same embedded builder