Class ImmutableProgramEnvir
java.lang.Object
io.resys.hdes.client.api.programs.ImmutableProgramEnvir
- All Implemented Interfaces:
ProgramEnvir
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableProgramEnvir
extends Object
implements ProgramEnvir
Immutable implementation of
ProgramEnvir.
Use the builder to create immutable instances:
ImmutableProgramEnvir.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableProgramEnvir.Nested classes/interfaces inherited from interface io.resys.hdes.client.api.programs.ProgramEnvir
ProgramEnvir.ProgramAssociation, ProgramEnvir.ProgramMessage, ProgramEnvir.ProgramStatus, ProgramEnvir.ProgramWrapper<A extends AstBody,P extends Program> -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableProgramEnvir.static ImmutableProgramEnvircopyOf(ProgramEnvir instance) Creates an immutable copy of aProgramEnvirvalue.booleanThis instance is equal to all instances ofImmutableProgramEnvirthat have equal attribute values.com.google.common.collect.ImmutableMap<String,ProgramEnvir.ProgramWrapper<AstBranch, BranchProgram>> com.google.common.collect.ImmutableMap<String,ProgramEnvir.ProgramWrapper<AstDecision, DecisionProgram>> com.google.common.collect.ImmutableMap<String,ProgramEnvir.ProgramWrapper<AstFlow, FlowProgram>> com.google.common.collect.ImmutableMap<String,ProgramEnvir.ProgramWrapper<AstService, ServiceProgram>> com.google.common.collect.ImmutableMap<String,ProgramEnvir.ProgramWrapper<AstTag, TagProgram>> com.google.common.collect.ImmutableMap<String,ProgramEnvir.ProgramWrapper<?, ?>> inthashCode()Computes a hash code from attributes:tagName,values,tagsByName,flowsByName,decisionsByName,servicesByName,branchesByName.toString()Prints the immutable valueProgramEnvirwith attribute values.final ImmutableProgramEnvirwithBranchesByName(Map<String, ? extends ProgramEnvir.ProgramWrapper<AstBranch, BranchProgram>> entries) Copy the current immutable object by replacing thebranchesByNamemap with the specified map.final ImmutableProgramEnvirwithDecisionsByName(Map<String, ? extends ProgramEnvir.ProgramWrapper<AstDecision, DecisionProgram>> entries) Copy the current immutable object by replacing thedecisionsByNamemap with the specified map.final ImmutableProgramEnvirwithFlowsByName(Map<String, ? extends ProgramEnvir.ProgramWrapper<AstFlow, FlowProgram>> entries) Copy the current immutable object by replacing theflowsByNamemap with the specified map.final ImmutableProgramEnvirwithServicesByName(Map<String, ? extends ProgramEnvir.ProgramWrapper<AstService, ServiceProgram>> entries) Copy the current immutable object by replacing theservicesByNamemap with the specified map.final ImmutableProgramEnvirwithTagName(String value) Copy the current immutable object by setting a value for thetagNameattribute.final ImmutableProgramEnvirwithTagsByName(Map<String, ? extends ProgramEnvir.ProgramWrapper<AstTag, TagProgram>> entries) Copy the current immutable object by replacing thetagsByNamemap with the specified map.final ImmutableProgramEnvirwithValues(Map<String, ? extends ProgramEnvir.ProgramWrapper<?, ?>> entries) Copy the current immutable object by replacing thevaluesmap with the specified map.
-
Method Details
-
getTagName
- Specified by:
getTagNamein interfaceProgramEnvir- Returns:
- The value of the
tagNameattribute
-
getValues
- Specified by:
getValuesin interfaceProgramEnvir- Returns:
- The value of the
valuesattribute
-
getTagsByName
public com.google.common.collect.ImmutableMap<String,ProgramEnvir.ProgramWrapper<AstTag, getTagsByName()TagProgram>> - Specified by:
getTagsByNamein interfaceProgramEnvir- Returns:
- The value of the
tagsByNameattribute
-
getFlowsByName
public com.google.common.collect.ImmutableMap<String,ProgramEnvir.ProgramWrapper<AstFlow, getFlowsByName()FlowProgram>> - Specified by:
getFlowsByNamein interfaceProgramEnvir- Returns:
- The value of the
flowsByNameattribute
-
getDecisionsByName
public com.google.common.collect.ImmutableMap<String,ProgramEnvir.ProgramWrapper<AstDecision, getDecisionsByName()DecisionProgram>> - Specified by:
getDecisionsByNamein interfaceProgramEnvir- Returns:
- The value of the
decisionsByNameattribute
-
getServicesByName
public com.google.common.collect.ImmutableMap<String,ProgramEnvir.ProgramWrapper<AstService, getServicesByName()ServiceProgram>> - Specified by:
getServicesByNamein interfaceProgramEnvir- Returns:
- The value of the
servicesByNameattribute
-
getBranchesByName
public com.google.common.collect.ImmutableMap<String,ProgramEnvir.ProgramWrapper<AstBranch, getBranchesByName()BranchProgram>> - Specified by:
getBranchesByNamein interfaceProgramEnvir- Returns:
- The value of the
branchesByNameattribute
-
withTagName
Copy the current immutable object by setting a value for thetagNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for tagName- Returns:
- A modified copy of the
thisobject
-
withValues
public final ImmutableProgramEnvir withValues(Map<String, ? extends ProgramEnvir.ProgramWrapper<?, ?>> entries) Copy the current immutable object by replacing thevaluesmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the values map- Returns:
- A modified copy of
thisobject
-
withTagsByName
public final ImmutableProgramEnvir withTagsByName(Map<String, ? extends ProgramEnvir.ProgramWrapper<AstTag, TagProgram>> entries) Copy the current immutable object by replacing thetagsByNamemap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the tagsByName map- Returns:
- A modified copy of
thisobject
-
withFlowsByName
public final ImmutableProgramEnvir withFlowsByName(Map<String, ? extends ProgramEnvir.ProgramWrapper<AstFlow, FlowProgram>> entries) Copy the current immutable object by replacing theflowsByNamemap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the flowsByName map- Returns:
- A modified copy of
thisobject
-
withDecisionsByName
public final ImmutableProgramEnvir withDecisionsByName(Map<String, ? extends ProgramEnvir.ProgramWrapper<AstDecision, DecisionProgram>> entries) Copy the current immutable object by replacing thedecisionsByNamemap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the decisionsByName map- Returns:
- A modified copy of
thisobject
-
withServicesByName
public final ImmutableProgramEnvir withServicesByName(Map<String, ? extends ProgramEnvir.ProgramWrapper<AstService, ServiceProgram>> entries) Copy the current immutable object by replacing theservicesByNamemap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the servicesByName map- Returns:
- A modified copy of
thisobject
-
withBranchesByName
public final ImmutableProgramEnvir withBranchesByName(Map<String, ? extends ProgramEnvir.ProgramWrapper<AstBranch, BranchProgram>> entries) Copy the current immutable object by replacing thebranchesByNamemap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the branchesByName map- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableProgramEnvirthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:tagName,values,tagsByName,flowsByName,decisionsByName,servicesByName,branchesByName. -
toString
Prints the immutable valueProgramEnvirwith attribute values. -
copyOf
Creates an immutable copy of aProgramEnvirvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable ProgramEnvir instance
-
builder
Creates a builder forImmutableProgramEnvir.ImmutableProgramEnvir.builder() .tagName(String) // requiredtagName.putValues|putAllValues(String => io.resys.hdes.client.api.programs.ProgramEnvir.ProgramWrapper<?, ?>) //valuesmappings .putTagsByName|putAllTagsByName(String => io.resys.hdes.client.api.programs.ProgramEnvir.ProgramWrapper<io.resys.hdes.client.api.ast.AstTag, io.resys.hdes.client.api.programs.TagProgram>) //tagsByNamemappings .putFlowsByName|putAllFlowsByName(String => io.resys.hdes.client.api.programs.ProgramEnvir.ProgramWrapper<io.resys.hdes.client.api.ast.AstFlow, io.resys.hdes.client.api.programs.FlowProgram>) //flowsByNamemappings .putDecisionsByName|putAllDecisionsByName(String => io.resys.hdes.client.api.programs.ProgramEnvir.ProgramWrapper<io.resys.hdes.client.api.ast.AstDecision, io.resys.hdes.client.api.programs.DecisionProgram>) //decisionsByNamemappings .putServicesByName|putAllServicesByName(String => io.resys.hdes.client.api.programs.ProgramEnvir.ProgramWrapper<io.resys.hdes.client.api.ast.AstService, io.resys.hdes.client.api.programs.ServiceProgram>) //servicesByNamemappings .putBranchesByName|putAllBranchesByName(String => io.resys.hdes.client.api.programs.ProgramEnvir.ProgramWrapper<io.resys.hdes.client.api.ast.AstBranch, io.resys.hdes.client.api.programs.BranchProgram>) //branchesByNamemappings .build();- Returns:
- A new ImmutableProgramEnvir builder
-