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
Provide access to combinators through builder functionality.
A builder is created through Builders.withBuilder(Supplier).
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create the final arbitrary if it's the builder itself.Create the final arbitrary.boolean
Equality matters to allow memoization of resulting arbitrariesint
hashCode()
<T extends @Nullable Object>
Builders.CombinableBuilder<B,T> Use an arbitrary of typeT
in this builder
-
Method Details
-
use
Use an arbitrary of typeT
in this builder- Type Parameters:
T
-- Parameters:
arbitrary
-- Returns:
- new Builders.CombinableBuilder instance
-
build
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
Create the final arbitrary if it's the builder itself.- Returns:
- arbitrary of builder
-
equals
Equality matters to allow memoization of resulting arbitraries -
hashCode
public int hashCode()
-