Class ImmutableProgramEnvir.Builder
java.lang.Object
io.resys.hdes.client.api.programs.ImmutableProgramEnvir.Builder
- Enclosing class:
- ImmutableProgramEnvir
Builds instances of type
ImmutableProgramEnvir.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbranchesByName(Map<String, ? extends ProgramEnvir.ProgramWrapper<AstBranch, BranchProgram>> entries) Sets or replaces all mappings from the specified map as entries for thebranchesByNamemap.build()Builds a newImmutableProgramEnvir.decisionsByName(Map<String, ? extends ProgramEnvir.ProgramWrapper<AstDecision, DecisionProgram>> entries) Sets or replaces all mappings from the specified map as entries for thedecisionsByNamemap.flowsByName(Map<String, ? extends ProgramEnvir.ProgramWrapper<AstFlow, FlowProgram>> entries) Sets or replaces all mappings from the specified map as entries for theflowsByNamemap.from(ProgramEnvir instance) Fill a builder with attribute values from the providedProgramEnvirinstance.putAllBranchesByName(Map<String, ? extends ProgramEnvir.ProgramWrapper<AstBranch, BranchProgram>> entries) Put all mappings from the specified map as entries tobranchesByNamemap.putAllDecisionsByName(Map<String, ? extends ProgramEnvir.ProgramWrapper<AstDecision, DecisionProgram>> entries) Put all mappings from the specified map as entries todecisionsByNamemap.putAllFlowsByName(Map<String, ? extends ProgramEnvir.ProgramWrapper<AstFlow, FlowProgram>> entries) Put all mappings from the specified map as entries toflowsByNamemap.putAllServicesByName(Map<String, ? extends ProgramEnvir.ProgramWrapper<AstService, ServiceProgram>> entries) Put all mappings from the specified map as entries toservicesByNamemap.putAllTagsByName(Map<String, ? extends ProgramEnvir.ProgramWrapper<AstTag, TagProgram>> entries) Put all mappings from the specified map as entries totagsByNamemap.putAllValues(Map<String, ? extends ProgramEnvir.ProgramWrapper<?, ?>> entries) Put all mappings from the specified map as entries tovaluesmap.Put one entry to thebranchesByNamemap.putBranchesByName(Map.Entry<String, ? extends ProgramEnvir.ProgramWrapper<AstBranch, BranchProgram>> entry) Put one entry to thebranchesByNamemap.Put one entry to thedecisionsByNamemap.putDecisionsByName(Map.Entry<String, ? extends ProgramEnvir.ProgramWrapper<AstDecision, DecisionProgram>> entry) Put one entry to thedecisionsByNamemap.putFlowsByName(String key, ProgramEnvir.ProgramWrapper<AstFlow, FlowProgram> value) Put one entry to theflowsByNamemap.putFlowsByName(Map.Entry<String, ? extends ProgramEnvir.ProgramWrapper<AstFlow, FlowProgram>> entry) Put one entry to theflowsByNamemap.Put one entry to theservicesByNamemap.putServicesByName(Map.Entry<String, ? extends ProgramEnvir.ProgramWrapper<AstService, ServiceProgram>> entry) Put one entry to theservicesByNamemap.putTagsByName(String key, ProgramEnvir.ProgramWrapper<AstTag, TagProgram> value) Put one entry to thetagsByNamemap.putTagsByName(Map.Entry<String, ? extends ProgramEnvir.ProgramWrapper<AstTag, TagProgram>> entry) Put one entry to thetagsByNamemap.putValues(String key, ProgramEnvir.ProgramWrapper<?, ?> value) Put one entry to thevaluesmap.putValues(Map.Entry<String, ? extends ProgramEnvir.ProgramWrapper<?, ?>> entry) Put one entry to thevaluesmap.servicesByName(Map<String, ? extends ProgramEnvir.ProgramWrapper<AstService, ServiceProgram>> entries) Sets or replaces all mappings from the specified map as entries for theservicesByNamemap.Initializes the value for thetagNameattribute.tagsByName(Map<String, ? extends ProgramEnvir.ProgramWrapper<AstTag, TagProgram>> entries) Sets or replaces all mappings from the specified map as entries for thetagsByNamemap.values(Map<String, ? extends ProgramEnvir.ProgramWrapper<?, ?>> entries) Sets or replaces all mappings from the specified map as entries for thevaluesmap.
-
Method Details
-
from
Fill a builder with attribute values from the providedProgramEnvirinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
tagName
Initializes the value for thetagNameattribute.- Parameters:
tagName- The value for tagName- Returns:
thisbuilder for use in a chained invocation
-
putValues
@CanIgnoreReturnValue public final ImmutableProgramEnvir.Builder putValues(String key, ProgramEnvir.ProgramWrapper<?, ?> value) Put one entry to thevaluesmap.- Parameters:
key- The key in the values mapvalue- The associated value in the values map- Returns:
thisbuilder for use in a chained invocation
-
putValues
@CanIgnoreReturnValue public final ImmutableProgramEnvir.Builder putValues(Map.Entry<String, ? extends ProgramEnvir.ProgramWrapper<?, ?>> entry) Put one entry to thevaluesmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
values
@CanIgnoreReturnValue public final ImmutableProgramEnvir.Builder values(Map<String, ? extends ProgramEnvir.ProgramWrapper<?, ?>> entries) Sets or replaces all mappings from the specified map as entries for thevaluesmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the values map- Returns:
thisbuilder for use in a chained invocation
-
putAllValues
@CanIgnoreReturnValue public final ImmutableProgramEnvir.Builder putAllValues(Map<String, ? extends ProgramEnvir.ProgramWrapper<?, ?>> entries) Put all mappings from the specified map as entries tovaluesmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the values map- Returns:
thisbuilder for use in a chained invocation
-
putTagsByName
@CanIgnoreReturnValue public final ImmutableProgramEnvir.Builder putTagsByName(String key, ProgramEnvir.ProgramWrapper<AstTag, TagProgram> value) Put one entry to thetagsByNamemap.- Parameters:
key- The key in the tagsByName mapvalue- The associated value in the tagsByName map- Returns:
thisbuilder for use in a chained invocation
-
putTagsByName
@CanIgnoreReturnValue public final ImmutableProgramEnvir.Builder putTagsByName(Map.Entry<String, ? extends ProgramEnvir.ProgramWrapper<AstTag, TagProgram>> entry) Put one entry to thetagsByNamemap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
tagsByName
@CanIgnoreReturnValue public final ImmutableProgramEnvir.Builder tagsByName(Map<String, ? extends ProgramEnvir.ProgramWrapper<AstTag, TagProgram>> entries) Sets or replaces all mappings from the specified map as entries for thetagsByNamemap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the tagsByName map- Returns:
thisbuilder for use in a chained invocation
-
putAllTagsByName
@CanIgnoreReturnValue public final ImmutableProgramEnvir.Builder putAllTagsByName(Map<String, ? extends ProgramEnvir.ProgramWrapper<AstTag, TagProgram>> entries) Put all mappings from the specified map as entries totagsByNamemap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the tagsByName map- Returns:
thisbuilder for use in a chained invocation
-
putFlowsByName
@CanIgnoreReturnValue public final ImmutableProgramEnvir.Builder putFlowsByName(String key, ProgramEnvir.ProgramWrapper<AstFlow, FlowProgram> value) Put one entry to theflowsByNamemap.- Parameters:
key- The key in the flowsByName mapvalue- The associated value in the flowsByName map- Returns:
thisbuilder for use in a chained invocation
-
putFlowsByName
@CanIgnoreReturnValue public final ImmutableProgramEnvir.Builder putFlowsByName(Map.Entry<String, ? extends ProgramEnvir.ProgramWrapper<AstFlow, FlowProgram>> entry) Put one entry to theflowsByNamemap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
flowsByName
@CanIgnoreReturnValue public final ImmutableProgramEnvir.Builder flowsByName(Map<String, ? extends ProgramEnvir.ProgramWrapper<AstFlow, FlowProgram>> entries) Sets or replaces all mappings from the specified map as entries for theflowsByNamemap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the flowsByName map- Returns:
thisbuilder for use in a chained invocation
-
putAllFlowsByName
@CanIgnoreReturnValue public final ImmutableProgramEnvir.Builder putAllFlowsByName(Map<String, ? extends ProgramEnvir.ProgramWrapper<AstFlow, FlowProgram>> entries) Put all mappings from the specified map as entries toflowsByNamemap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the flowsByName map- Returns:
thisbuilder for use in a chained invocation
-
putDecisionsByName
@CanIgnoreReturnValue public final ImmutableProgramEnvir.Builder putDecisionsByName(String key, ProgramEnvir.ProgramWrapper<AstDecision, DecisionProgram> value) Put one entry to thedecisionsByNamemap.- Parameters:
key- The key in the decisionsByName mapvalue- The associated value in the decisionsByName map- Returns:
thisbuilder for use in a chained invocation
-
putDecisionsByName
@CanIgnoreReturnValue public final ImmutableProgramEnvir.Builder putDecisionsByName(Map.Entry<String, ? extends ProgramEnvir.ProgramWrapper<AstDecision, DecisionProgram>> entry) Put one entry to thedecisionsByNamemap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
decisionsByName
@CanIgnoreReturnValue public final ImmutableProgramEnvir.Builder decisionsByName(Map<String, ? extends ProgramEnvir.ProgramWrapper<AstDecision, DecisionProgram>> entries) Sets or replaces all mappings from the specified map as entries for thedecisionsByNamemap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the decisionsByName map- Returns:
thisbuilder for use in a chained invocation
-
putAllDecisionsByName
@CanIgnoreReturnValue public final ImmutableProgramEnvir.Builder putAllDecisionsByName(Map<String, ? extends ProgramEnvir.ProgramWrapper<AstDecision, DecisionProgram>> entries) Put all mappings from the specified map as entries todecisionsByNamemap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the decisionsByName map- Returns:
thisbuilder for use in a chained invocation
-
putServicesByName
@CanIgnoreReturnValue public final ImmutableProgramEnvir.Builder putServicesByName(String key, ProgramEnvir.ProgramWrapper<AstService, ServiceProgram> value) Put one entry to theservicesByNamemap.- Parameters:
key- The key in the servicesByName mapvalue- The associated value in the servicesByName map- Returns:
thisbuilder for use in a chained invocation
-
putServicesByName
@CanIgnoreReturnValue public final ImmutableProgramEnvir.Builder putServicesByName(Map.Entry<String, ? extends ProgramEnvir.ProgramWrapper<AstService, ServiceProgram>> entry) Put one entry to theservicesByNamemap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
servicesByName
@CanIgnoreReturnValue public final ImmutableProgramEnvir.Builder servicesByName(Map<String, ? extends ProgramEnvir.ProgramWrapper<AstService, ServiceProgram>> entries) Sets or replaces all mappings from the specified map as entries for theservicesByNamemap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the servicesByName map- Returns:
thisbuilder for use in a chained invocation
-
putAllServicesByName
@CanIgnoreReturnValue public final ImmutableProgramEnvir.Builder putAllServicesByName(Map<String, ? extends ProgramEnvir.ProgramWrapper<AstService, ServiceProgram>> entries) Put all mappings from the specified map as entries toservicesByNamemap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the servicesByName map- Returns:
thisbuilder for use in a chained invocation
-
putBranchesByName
@CanIgnoreReturnValue public final ImmutableProgramEnvir.Builder putBranchesByName(String key, ProgramEnvir.ProgramWrapper<AstBranch, BranchProgram> value) Put one entry to thebranchesByNamemap.- Parameters:
key- The key in the branchesByName mapvalue- The associated value in the branchesByName map- Returns:
thisbuilder for use in a chained invocation
-
putBranchesByName
@CanIgnoreReturnValue public final ImmutableProgramEnvir.Builder putBranchesByName(Map.Entry<String, ? extends ProgramEnvir.ProgramWrapper<AstBranch, BranchProgram>> entry) Put one entry to thebranchesByNamemap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
branchesByName
@CanIgnoreReturnValue public final ImmutableProgramEnvir.Builder branchesByName(Map<String, ? extends ProgramEnvir.ProgramWrapper<AstBranch, BranchProgram>> entries) Sets or replaces all mappings from the specified map as entries for thebranchesByNamemap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the branchesByName map- Returns:
thisbuilder for use in a chained invocation
-
putAllBranchesByName
@CanIgnoreReturnValue public final ImmutableProgramEnvir.Builder putAllBranchesByName(Map<String, ? extends ProgramEnvir.ProgramWrapper<AstBranch, BranchProgram>> entries) Put all mappings from the specified map as entries tobranchesByNamemap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the branchesByName map- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableProgramEnvir.- Returns:
- An immutable instance of ProgramEnvir
- Throws:
IllegalStateException- if any required attributes are missing
-