B
- The builder's type@API(status=MAINTAINED,
since="1.2.0")
public static class Combinators.CombinableBuilder<B,T>
extends java.lang.Object
Combinators.BuilderCombinator.use(Arbitrary)
.Modifier and Type | Method and Description |
---|---|
<C> Combinators.BuilderCombinator<C> |
in(Combinators.F2<B,T,C> toFunction)
Use the last provided arbitrary to change the builder object.
|
Combinators.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.
|
public <C> Combinators.BuilderCombinator<C> in(Combinators.F2<B,T,C> toFunction)
C
- Type of returned buildertoFunction
- Use value provided by arbitrary to set current builder
and return (potentially a different) builder.@API(status=EXPERIMENTAL, since="1.3.5") public Combinators.BuilderCombinator<B> inSetter(java.util.function.BiConsumer<B,T> setter)
setter
- Use value provided by arbitrary to change a builder's property.