Package net.jqwik.api
Class Combinators.BuilderCombinator<B>
- java.lang.Object
-
- net.jqwik.api.Combinators.BuilderCombinator<B>
-
- Type Parameters:
B
- The builder's type
- Enclosing class:
- Combinators
@API(status=MAINTAINED, since="1.2.0") public static class Combinators.BuilderCombinator<B> extends java.lang.Object
Provide access to combinator's through builder functionality. A builder is created through either Combinators.withBuilder(Supplier) or Combinators.withBuilder(Arbitrary).
-
-
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> Combinators.CombinableBuilder<B,T>
use(Arbitrary<T> arbitrary)
-
-
-
Method Detail
-
use
public <T> Combinators.CombinableBuilder<B,T> use(Arbitrary<T> arbitrary)
-
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
-
-