B - R - T - public static interface FactoriesSetup.BuilderValueSetup<B,R,T> extends FactoriesSetup.ValueDeclaration<T,FactoriesSetup.BuilderSetup<B,R>>, FactoriesSetup.BuilderSetup<B,R>
FactoriesSetup.BuilderSetup.
If no value is given (ie., if a FactoriesSetup.BuilderSetup method is called
on this object), the generator of the respective key will be used.| Modifier and Type | Method and Description |
|---|---|
default FactoriesSetup.BuilderSetup<B,R> |
applyValues(BiFunction<? super B,? super ValueGenerator.ValueMap,? extends B> function)
Applies values and replaces the object under construction with the
function result.
|
default FactoriesSetup.BuilderSetup<B,R> |
assignValues(String key,
ValueSource<?> valueSource) |
default FactoriesSetup.FactorySetup<R> |
build(BiFunction<? super B,? super ValueGenerator.ValueMap,? extends R> buildFunction)
Creates the actual object.
|
FactoriesSetup.BuilderSetup<B,R> |
builderSetup() |
default Class<B> |
getValueType()
Returns the type of values produced/contained by this instance.
|
default FactoriesSetup.BuilderSetup<B,R> |
include(String key,
Factory.Include<?> include) |
include, include, include, to, to, to, to, toNext, toNext, toNext, toNext, toValueOf, toValues, toValuesOfapply, apply, assign, build, set, set, set, setFactoriesSetup.BuilderSetup<B,R> builderSetup()
default FactoriesSetup.FactorySetup<R> build(BiFunction<? super B,? super ValueGenerator.ValueMap,? extends R> buildFunction)
FactoriesSetup.BuilderSetupFactoriesSetup.FactorySetup returned by this call.build in interface FactoriesSetup.BuilderSetup<B,R>default FactoriesSetup.BuilderSetup<B,R> applyValues(BiFunction<? super B,? super ValueGenerator.ValueMap,? extends B> function)
FactoriesSetup.BuilderSetupBaseapplyValues in interface FactoriesSetup.BuilderSetupBase<B,FactoriesSetup.BuilderSetup<B,R>>default FactoriesSetup.BuilderSetup<B,R> assignValues(String key, ValueSource<?> valueSource)
assignValues in interface FactoriesSetup.BuilderSetupBase<B,FactoriesSetup.BuilderSetup<B,R>>assignValues in interface FactoriesSetup.ValueSetupBase<B>default FactoriesSetup.BuilderSetup<B,R> include(String key, Factory.Include<?> include)
include in interface FactoriesSetup.BuilderSetupBase<B,FactoriesSetup.BuilderSetup<B,R>>include in interface FactoriesSetup.ValueSetupBase<B>Copyright © 2019. All rights reserved.