B
- The builder's typepublic static class Builders.CombinableBuilder<B,T>
extends java.lang.Object
Builders.BuilderCombinator.use(Arbitrary)
.Modifier and Type | Method and Description |
---|---|
Builders.BuilderCombinator<B> |
in(java.util.function.BiFunction<B,T,B> toFunction)
Use the last provided arbitrary to change the builder object.
|
Builders.BuilderCombinator<B> |
inSetter(java.util.function.BiConsumer<B,T> setter)
Use the last provided arbitrary to change the builder object
and proceed with the same builder.
|
Builders.CombinableBuilder<B,T> |
withProbability(double probabilityOfUse)
Set probability for using this arbitrary
|
public Builders.CombinableBuilder<B,T> withProbability(double probabilityOfUse)
probabilityOfUse
- Must be between 0.0 and 1.0public Builders.BuilderCombinator<B> in(java.util.function.BiFunction<B,T,B> toFunction)
toFunction
- Use value provided by arbitrary to set current builder
and return builder of same type.public Builders.BuilderCombinator<B> inSetter(java.util.function.BiConsumer<B,T> setter)
setter
- Use value provided by arbitrary to change a builder's property.