Package net.jqwik.api

Klasse Builders.BuilderCombinator<B>

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

public static class Builders.BuilderCombinator<B> extends Object
Provide access to combinators through builder functionality.

A builder is created through Builders.withBuilder(Supplier).

  • Methodendetails

    • use

      public <T extends @Nullable Object> Builders.CombinableBuilder<B,T> use(Arbitrary<T> arbitrary)
      Use an arbitrary of type T in this builder
      Typparameter:
      T -
      Parameter:
      arbitrary -
      Gibt zurück:
      new Builders.CombinableBuilder instance
    • build

      public <T extends @Nullable Object> Arbitrary<T> build(Function<B,T> buildFunction)
      Create the final arbitrary.
      Typparameter:
      T - the target object's type
      Parameter:
      buildFunction - Function to map a builder to an object
      Gibt zurück:
      arbitrary of target object
    • build

      public Arbitrary<B> build()
      Create the final arbitrary if it's the builder itself.
      Gibt zurück:
      arbitrary of builder
    • equals

      public boolean equals(Object o)
      Equality matters to allow memoization of resulting arbitraries
      Setzt außer Kraft:
      equals in Klasse Object
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object