Package com.yahoo.application
Class MockApplicationConfig.Builder
java.lang.Object
com.yahoo.application.MockApplicationConfig.Builder
- All Implemented Interfaces:
com.yahoo.config.ConfigBuilder,com.yahoo.config.ConfigInstance.Builder
- Enclosing class:
- MockApplicationConfig
public static final class MockApplicationConfig.Builder
extends Object
implements com.yahoo.config.ConfigInstance.Builder
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()final booleandispatchGetConfig(com.yahoo.config.ConfigInstance.Producer producer) final booleanfinal Stringfinal Stringfinal Stringmylist(Collection<String> __values) mymapstruct(String __key, MockApplicationConfig.Mymapstruct.Builder __value) mymapstruct(String __key, Consumer<MockApplicationConfig.Mymapstruct.Builder> __func) Make a new builder and run the supplied function on it before using it as the valuemystruct(MockApplicationConfig.Mystruct.Builder __builder) Make a new builder and run the supplied function on it before adding it to the listAdd the given builder to this builder's list of Mystructlist buildersMake a new builder and run the supplied function on it before adding it to the listmystructlist(List<MockApplicationConfig.Mystructlist.Builder> __builders) Set the given list as this builder's list of Mystructlist buildersfinal voidsetApplyOnRestart(boolean applyOnRestart)
-
Field Details
-
mystruct
-
mystructlist
-
mylist
-
mymap
-
mymapstruct
-
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
mystruct
-
mystruct
public MockApplicationConfig.Builder mystruct(Consumer<MockApplicationConfig.Mystruct.Builder> __func) Make a new builder and run the supplied function on it before adding it to the list- Parameters:
__func- lambda that modifies the given builder- Returns:
- this builder
-
mystructlist
public MockApplicationConfig.Builder mystructlist(MockApplicationConfig.Mystructlist.Builder __builder) Add the given builder to this builder's list of Mystructlist builders- Parameters:
__builder- a builder- Returns:
- this builder
-
mystructlist
public MockApplicationConfig.Builder mystructlist(Consumer<MockApplicationConfig.Mystructlist.Builder> __func) Make a new builder and run the supplied function on it before adding it to the list- Parameters:
__func- lambda that modifies the given builder- Returns:
- this builder
-
mystructlist
public MockApplicationConfig.Builder mystructlist(List<MockApplicationConfig.Mystructlist.Builder> __builders) Set the given list as this builder's list of Mystructlist builders- Parameters:
__builders- a list of builders- Returns:
- this builder
-
mylist
-
mylist
-
mymap
-
mymap
-
mymapstruct
public MockApplicationConfig.Builder mymapstruct(String __key, MockApplicationConfig.Mymapstruct.Builder __value) -
mymapstruct
public MockApplicationConfig.Builder mymapstruct(Map<String, MockApplicationConfig.Mymapstruct.Builder> __values) -
mymapstruct
public MockApplicationConfig.Builder mymapstruct(String __key, Consumer<MockApplicationConfig.Mymapstruct.Builder> __func) Make a new builder and run the supplied function on it before using it as the value- Parameters:
__func- lambda that modifies the given builder- Returns:
- this builder
-
dispatchGetConfig
public final boolean dispatchGetConfig(com.yahoo.config.ConfigInstance.Producer producer) - Specified by:
dispatchGetConfigin interfacecom.yahoo.config.ConfigInstance.Builder
-
getDefMd5
- Specified by:
getDefMd5in interfacecom.yahoo.config.ConfigInstance.Builder
-
getDefName
- Specified by:
getDefNamein interfacecom.yahoo.config.ConfigInstance.Builder
-
getDefNamespace
- Specified by:
getDefNamespacein interfacecom.yahoo.config.ConfigInstance.Builder
-
getApplyOnRestart
public final boolean getApplyOnRestart()- Specified by:
getApplyOnRestartin interfacecom.yahoo.config.ConfigInstance.Builder
-
setApplyOnRestart
public final void setApplyOnRestart(boolean applyOnRestart) - Specified by:
setApplyOnRestartin interfacecom.yahoo.config.ConfigInstance.Builder
-
build
-