Package net.jqwik.api

Class Builders.BuilderCombinator<B>

  • Type Parameters:
    B - The builder's type
    Enclosing class:
    Builders

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

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

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Arbitrary<B> build()
      Create the final arbitrary if it's the builder itself.
      <T> Arbitrary<T> build​(java.util.function.Function<B,​T> buildFunction)
      Create the final arbitrary.
      <T> Builders.CombinableBuilder<B,​T> use​(Arbitrary<T> arbitrary)
      Use an arbitrary of type T in this builder
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • build

        public <T> Arbitrary<T> build​(java.util.function.Function<B,​T> buildFunction)
        Create the final arbitrary.
        Type Parameters:
        T - the target object's type
        Parameters:
        buildFunction - Function to map a builder to an object
        Returns:
        arbitrary of target object
      • build

        public Arbitrary<B> build()
        Create the final arbitrary if it's the builder itself.
        Returns:
        arbitrary of builder