Package net.jqwik.api
Class Builders.BuilderCombinator<B>
- java.lang.Object
-
- net.jqwik.api.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 typeT
in this builder
-
-
-
Method Detail
-
use
public <T> Builders.CombinableBuilder<B,T> use(Arbitrary<T> arbitrary)
Use an arbitrary of typeT
in this builder- Type Parameters:
T
-- Parameters:
arbitrary
-- Returns:
- new Builders.CombinableBuilder instance
-
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
-
-