B
- The builder's typepublic static class Builders.BuilderCombinator<B>
extends java.lang.Object
A builder is created through Builders.withBuilder(Supplier).
Modifier and Type | Method and 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.
|
boolean |
equals(java.lang.Object o)
Equality matters to allow memoization of resulting arbitraries
|
int |
hashCode() |
<T> Builders.CombinableBuilder<B,T> |
use(Arbitrary<T> arbitrary)
Use an arbitrary of type
T in this builder |
public <T> Builders.CombinableBuilder<B,T> use(Arbitrary<T> arbitrary)
T
in this builderT
- arbitrary
- public <T> Arbitrary<T> build(java.util.function.Function<B,T> buildFunction)
T
- the target object's typebuildFunction
- Function to map a builder to an objectpublic Arbitrary<B> build()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object