Package io.resys.hdes.client.api
Class ImmutableComposerState
java.lang.Object
io.resys.hdes.client.api.ImmutableComposerState
- All Implemented Interfaces:
HdesComposer.ComposerState
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableComposerState
extends Object
implements HdesComposer.ComposerState
Immutable implementation of
HdesComposer.ComposerState.
Use the builder to create immutable instances:
ImmutableComposerState.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableComposerState. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableComposerState.static ImmutableComposerStatecopyOf(HdesComposer.ComposerState instance) Creates an immutable copy of aHdesComposer.ComposerStatevalue.booleanThis instance is equal to all instances ofImmutableComposerStatethat have equal attribute values.com.google.common.collect.ImmutableMap<String,HdesComposer.ComposerEntity<AstBranch>> com.google.common.collect.ImmutableMap<String,HdesComposer.ComposerEntity<AstDecision>> com.google.common.collect.ImmutableMap<String,HdesComposer.ComposerEntity<AstFlow>> getFlows()com.google.common.collect.ImmutableMap<String,HdesComposer.ComposerEntity<AstService>> com.google.common.collect.ImmutableMap<String,HdesComposer.ComposerEntity<AstTag>> getTags()inthashCode()Computes a hash code from attributes:tags,flows,services,decisions,branches.toString()Prints the immutable valueComposerStatewith attribute values.final ImmutableComposerStatewithBranches(Map<String, ? extends HdesComposer.ComposerEntity<AstBranch>> entries) Copy the current immutable object by replacing thebranchesmap with the specified map.final ImmutableComposerStatewithDecisions(Map<String, ? extends HdesComposer.ComposerEntity<AstDecision>> entries) Copy the current immutable object by replacing thedecisionsmap with the specified map.final ImmutableComposerStatewithFlows(Map<String, ? extends HdesComposer.ComposerEntity<AstFlow>> entries) Copy the current immutable object by replacing theflowsmap with the specified map.final ImmutableComposerStatewithServices(Map<String, ? extends HdesComposer.ComposerEntity<AstService>> entries) Copy the current immutable object by replacing theservicesmap with the specified map.final ImmutableComposerStatewithTags(Map<String, ? extends HdesComposer.ComposerEntity<AstTag>> entries) Copy the current immutable object by replacing thetagsmap with the specified map.
-
Method Details
-
getTags
- Specified by:
getTagsin interfaceHdesComposer.ComposerState- Returns:
- The value of the
tagsattribute
-
getFlows
public com.google.common.collect.ImmutableMap<String,HdesComposer.ComposerEntity<AstFlow>> getFlows()- Specified by:
getFlowsin interfaceHdesComposer.ComposerState- Returns:
- The value of the
flowsattribute
-
getServices
public com.google.common.collect.ImmutableMap<String,HdesComposer.ComposerEntity<AstService>> getServices()- Specified by:
getServicesin interfaceHdesComposer.ComposerState- Returns:
- The value of the
servicesattribute
-
getDecisions
public com.google.common.collect.ImmutableMap<String,HdesComposer.ComposerEntity<AstDecision>> getDecisions()- Specified by:
getDecisionsin interfaceHdesComposer.ComposerState- Returns:
- The value of the
decisionsattribute
-
getBranches
public com.google.common.collect.ImmutableMap<String,HdesComposer.ComposerEntity<AstBranch>> getBranches()- Specified by:
getBranchesin interfaceHdesComposer.ComposerState- Returns:
- The value of the
branchesattribute
-
withTags
public final ImmutableComposerState withTags(Map<String, ? extends HdesComposer.ComposerEntity<AstTag>> entries) Copy the current immutable object by replacing thetagsmap 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 tags map- Returns:
- A modified copy of
thisobject
-
withFlows
public final ImmutableComposerState withFlows(Map<String, ? extends HdesComposer.ComposerEntity<AstFlow>> entries) Copy the current immutable object by replacing theflowsmap 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 flows map- Returns:
- A modified copy of
thisobject
-
withServices
public final ImmutableComposerState withServices(Map<String, ? extends HdesComposer.ComposerEntity<AstService>> entries) Copy the current immutable object by replacing theservicesmap 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 services map- Returns:
- A modified copy of
thisobject
-
withDecisions
public final ImmutableComposerState withDecisions(Map<String, ? extends HdesComposer.ComposerEntity<AstDecision>> entries) Copy the current immutable object by replacing thedecisionsmap 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 decisions map- Returns:
- A modified copy of
thisobject
-
withBranches
public final ImmutableComposerState withBranches(Map<String, ? extends HdesComposer.ComposerEntity<AstBranch>> entries) Copy the current immutable object by replacing thebranchesmap 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 branches map- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableComposerStatethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:tags,flows,services,decisions,branches. -
toString
Prints the immutable valueComposerStatewith attribute values. -
copyOf
Creates an immutable copy of aHdesComposer.ComposerStatevalue. 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 ComposerState instance
-
builder
Creates a builder forImmutableComposerState.ImmutableComposerState.builder() .putTags|putAllTags(String => io.resys.hdes.client.api.HdesComposer.ComposerEntity<io.resys.hdes.client.api.ast.AstTag>) //tagsmappings .putFlows|putAllFlows(String => io.resys.hdes.client.api.HdesComposer.ComposerEntity<io.resys.hdes.client.api.ast.AstFlow>) //flowsmappings .putServices|putAllServices(String => io.resys.hdes.client.api.HdesComposer.ComposerEntity<io.resys.hdes.client.api.ast.AstService>) //servicesmappings .putDecisions|putAllDecisions(String => io.resys.hdes.client.api.HdesComposer.ComposerEntity<io.resys.hdes.client.api.ast.AstDecision>) //decisionsmappings .putBranches|putAllBranches(String => io.resys.hdes.client.api.HdesComposer.ComposerEntity<io.resys.hdes.client.api.ast.AstBranch>) //branchesmappings .build();- Returns:
- A new ImmutableComposerState builder
-