B - This - public static interface FactoriesSetup.BuilderSetupBase<B,This extends FactoriesSetup.BuilderSetupBase<B,This>> extends FactoriesSetup.ValueSetupBase<B>
FactoriesSetup| Modifier and Type | Method and Description |
|---|---|
default <T> FactoriesSetup.ValueDeclaration<T,This> |
apply(BiFunction<? super B,T,? extends B> setter)
Applies an anonymous value and replaces the object under construction
with the function result.
|
default <T> FactoriesSetup.ValueDeclaration<T,This> |
apply(String key,
BiFunction<? super B,T,? extends B> function)
Applies a value and replaces the object under construction with the
function result.
|
default <T> FactoriesSetup.ValueDeclaration<T,This> |
apply(Typed<T> token,
BiFunction<? super B,T,? extends B> function)
Applies a value and replaces the object under construction with the
function result.
|
This |
applyValues(BiFunction<? super B,? super ValueGenerator.ValueMap,? extends B> function)
Applies values and replaces the object under construction with the
function result.
|
default <T> FactoriesSetup.ValueDeclaration<T,? extends This> |
assign(String key)
Assigns a value to the value map, but does not modify the object.
|
default FactoriesSetup.ValueDeclaration<BiDataSource.Pair<?,?>,? extends This> |
assign(String id1,
String id2)
Assigns two values from a pair to the value map.
|
default This |
assign(String id1,
String id2,
BiDataSource<?,?> dataSource)
Assigns two values from a
BiDataSource to the value map. |
default <T> FactoriesSetup.ValueDeclaration<T,? extends This> |
assign(Typed<T> token)
Assigns a value to the value map, but does not modify the object.
|
default <T,U> FactoriesSetup.ValueDeclaration<BiDataSource.Pair<T,U>,? extends This> |
assign(Typed<T> token1,
Typed<U> token2)
Assigns two values from a pair to the value map.
|
default <T,U> This |
assign(Typed<T> token1,
Typed<U> token2,
BiDataSource<? extends T,? extends U> dataSource)
Assigns two values from a
BiDataSource to the value map. |
This |
assignValues(String key,
ValueSource<?> valueSource) |
This |
include(String key,
Factory.Include<?> include) |
default This |
include(String key,
Factory<?> factory) |
default This |
include(String key,
String factoryKey) |
default <T> FactoriesSetup.ValueDeclaration<T,This> |
set(BiConsumer<? super B,T> setter)
Sets an anonymous value using a setter.
|
default FactoriesSetup.ValueDeclaration<Object,This> |
set(String key)
Sets the given field via reflection.
|
default <T> FactoriesSetup.ValueDeclaration<T,This> |
set(String key,
BiConsumer<? super B,? super T> setter)
Sets a value using a setter.
|
default <T> FactoriesSetup.ValueDeclaration<T,This> |
set(Typed<T> token)
Sets the given field via reflection.
|
default <T> FactoriesSetup.ValueDeclaration<T,This> |
set(Typed<T> token,
BiConsumer<? super B,? super T> setter)
Sets a value using a setter.
|
default This |
then(BiConsumer<? super B,? super ValueGenerator.ValueMap> action)
Passes the constructed object and the value map to a consumer.
|
default This |
then(Consumer<? super B> action)
Passes the constructed object to a consumer.
|
default This |
thenApply(BiFunction<? super B,? super ValueGenerator.ValueMap,? extends B> action)
Replaces the object under construction with the function result.
|
default This |
thenApply(Function<? super B,? extends B> action)
Replaces the object under construction with the function result.
|
getValueType, token, token, typeOfThis applyValues(BiFunction<? super B,? super ValueGenerator.ValueMap,? extends B> function)
function - default <T> FactoriesSetup.ValueDeclaration<T,? extends This> assign(String key)
FactoriesSetup.ValueSetupBaseassign in interface FactoriesSetup.ValueSetupBase<B>default <T> FactoriesSetup.ValueDeclaration<T,? extends This> assign(Typed<T> token)
FactoriesSetup.ValueSetupBaseassign in interface FactoriesSetup.ValueSetupBase<B>default FactoriesSetup.ValueDeclaration<BiDataSource.Pair<?,?>,? extends This> assign(String id1, String id2)
FactoriesSetup.ValueSetupBaseassign in interface FactoriesSetup.ValueSetupBase<B>This assignValues(String key, ValueSource<?> valueSource)
assignValues in interface FactoriesSetup.ValueSetupBase<B>default This assign(String id1, String id2, BiDataSource<?,?> dataSource)
FactoriesSetup.ValueSetupBaseBiDataSource to the value map.assign in interface FactoriesSetup.ValueSetupBase<B>default <T,U> FactoriesSetup.ValueDeclaration<BiDataSource.Pair<T,U>,? extends This> assign(Typed<T> token1, Typed<U> token2)
FactoriesSetup.ValueSetupBaseassign in interface FactoriesSetup.ValueSetupBase<B>default <T,U> This assign(Typed<T> token1, Typed<U> token2, BiDataSource<? extends T,? extends U> dataSource)
FactoriesSetup.ValueSetupBaseBiDataSource to the value map.assign in interface FactoriesSetup.ValueSetupBase<B>This include(String key, Factory.Include<?> include)
include in interface FactoriesSetup.ValueSetupBase<B>default This include(String key, Factory<?> factory)
include in interface FactoriesSetup.ValueSetupBase<B>default This include(String key, String factoryKey)
include in interface FactoriesSetup.ValueSetupBase<B>default FactoriesSetup.ValueDeclaration<Object,This> set(String key)
key - default <T> FactoriesSetup.ValueDeclaration<T,This> set(String key, BiConsumer<? super B,? super T> setter)
T - key - setter - default <T> FactoriesSetup.ValueDeclaration<T,This> set(Typed<T> token)
T - token - default <T> FactoriesSetup.ValueDeclaration<T,This> set(Typed<T> token, BiConsumer<? super B,? super T> setter)
T - token - setter - default <T> FactoriesSetup.ValueDeclaration<T,This> apply(String key, BiFunction<? super B,T,? extends B> function)
T - key - function - default <T> FactoriesSetup.ValueDeclaration<T,This> apply(Typed<T> token, BiFunction<? super B,T,? extends B> function)
T - token - function - default <T> FactoriesSetup.ValueDeclaration<T,This> set(BiConsumer<? super B,T> setter)
T - setter - default <T> FactoriesSetup.ValueDeclaration<T,This> apply(BiFunction<? super B,T,? extends B> setter)
T - setter - default This then(Consumer<? super B> action)
action - default This then(BiConsumer<? super B,? super ValueGenerator.ValueMap> action)
action - default This thenApply(Function<? super B,? extends B> action)
action - default This thenApply(BiFunction<? super B,? super ValueGenerator.ValueMap,? extends B> action)
action - Copyright © 2019. All rights reserved.