Package net.jqwik.api

Class Combinators.BuilderCombinator<B>

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

    @API(status=DEPRECATED,
         since="1.5.4")
    public static class Combinators.BuilderCombinator<B>
    extends java.lang.Object
    Deprecated.
    Will be removed in 1.7.0.
    Provide access to combinator's through builder functionality. A builder is created through either Combinators.withBuilder(Supplier) or Combinators.withBuilder(Arbitrary).
    • Method Detail

      • build

        public <T> Arbitrary<T> build​(java.util.function.Function<B,​T> buildFunction)
        Deprecated.
        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

        @API(status=MAINTAINED,
             since="1.3.5")
        public Arbitrary<B> build()
        Deprecated.
        Create the final arbitrary if it's the builder itself.
        Returns:
        arbitrary of builder