Package io.resys.hdes.client.api
Class ImmutableStoreState
java.lang.Object
io.resys.hdes.client.api.ImmutableStoreState
- All Implemented Interfaces:
HdesStore.StoreState
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableStoreState
extends Object
implements HdesStore.StoreState
Immutable implementation of
HdesStore.StoreState.
Use the builder to create immutable instances:
ImmutableStoreState.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableStoreState. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableStoreState.Builderbuilder()Creates a builder forImmutableStoreState.static ImmutableStoreStatecopyOf(HdesStore.StoreState instance) Creates an immutable copy of aHdesStore.StoreStatevalue.booleanThis instance is equal to all instances ofImmutableStoreStatethat have equal attribute values.com.google.common.collect.ImmutableMap<String,HdesStore.StoreEntity> com.google.common.collect.ImmutableMap<String,HdesStore.StoreEntity> com.google.common.collect.ImmutableMap<String,HdesStore.StoreEntity> getFlows()com.google.common.collect.ImmutableMap<String,HdesStore.StoreEntity> com.google.common.collect.ImmutableMap<String,HdesStore.StoreEntity> getTags()inthashCode()Computes a hash code from attributes:tagName,commitId,commitAt,branches,tags,flows,services,decisions.toString()Prints the immutable valueStoreStatewith attribute values.final ImmutableStoreStatewithBranches(Map<String, ? extends HdesStore.StoreEntity> entries) Copy the current immutable object by replacing thebranchesmap with the specified map.final ImmutableStoreStatewithCommitAt(LocalDateTime value) Copy the current immutable object by setting a value for thecommitAtattribute.final ImmutableStoreStatewithCommitId(String value) Copy the current immutable object by setting a value for thecommitIdattribute.final ImmutableStoreStatewithDecisions(Map<String, ? extends HdesStore.StoreEntity> entries) Copy the current immutable object by replacing thedecisionsmap with the specified map.final ImmutableStoreStatewithFlows(Map<String, ? extends HdesStore.StoreEntity> entries) Copy the current immutable object by replacing theflowsmap with the specified map.final ImmutableStoreStatewithServices(Map<String, ? extends HdesStore.StoreEntity> entries) Copy the current immutable object by replacing theservicesmap with the specified map.final ImmutableStoreStatewithTagName(String value) Copy the current immutable object by setting a value for thetagNameattribute.final ImmutableStoreStatewithTags(Map<String, ? extends HdesStore.StoreEntity> entries) Copy the current immutable object by replacing thetagsmap with the specified map.
-
Method Details
-
getTagName
- Specified by:
getTagNamein interfaceHdesStore.StoreState- Returns:
- The value of the
tagNameattribute
-
getCommitId
- Specified by:
getCommitIdin interfaceHdesStore.StoreState- Returns:
- The value of the
commitIdattribute
-
getCommitAt
- Specified by:
getCommitAtin interfaceHdesStore.StoreState- Returns:
- The value of the
commitAtattribute
-
getBranches
- Specified by:
getBranchesin interfaceHdesStore.StoreState- Returns:
- The value of the
branchesattribute
-
getTags
- Specified by:
getTagsin interfaceHdesStore.StoreState- Returns:
- The value of the
tagsattribute
-
getFlows
- Specified by:
getFlowsin interfaceHdesStore.StoreState- Returns:
- The value of the
flowsattribute
-
getServices
- Specified by:
getServicesin interfaceHdesStore.StoreState- Returns:
- The value of the
servicesattribute
-
getDecisions
- Specified by:
getDecisionsin interfaceHdesStore.StoreState- Returns:
- The value of the
decisionsattribute
-
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
-
withCommitId
Copy the current immutable object by setting a value for thecommitIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for commitId (can benull)- Returns:
- A modified copy of the
thisobject
-
withCommitAt
Copy the current immutable object by setting a value for thecommitAtattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for commitAt (can benull)- Returns:
- A modified copy of the
thisobject
-
withBranches
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
-
withTags
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
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
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
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
-
equals
This instance is equal to all instances ofImmutableStoreStatethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:tagName,commitId,commitAt,branches,tags,flows,services,decisions. -
toString
Prints the immutable valueStoreStatewith attribute values. -
copyOf
Creates an immutable copy of aHdesStore.StoreStatevalue. 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 StoreState instance
-
builder
Creates a builder forImmutableStoreState.ImmutableStoreState.builder() .tagName(String) // requiredtagName.commitId(String | null) // nullablecommitId.commitAt(java.time.LocalDateTime | null) // nullablecommitAt.putBranches|putAllBranches(String => io.resys.hdes.client.api.HdesStore.StoreEntity) //branchesmappings .putTags|putAllTags(String => io.resys.hdes.client.api.HdesStore.StoreEntity) //tagsmappings .putFlows|putAllFlows(String => io.resys.hdes.client.api.HdesStore.StoreEntity) //flowsmappings .putServices|putAllServices(String => io.resys.hdes.client.api.HdesStore.StoreEntity) //servicesmappings .putDecisions|putAllDecisions(String => io.resys.hdes.client.api.HdesStore.StoreEntity) //decisionsmappings .build();- Returns:
- A new ImmutableStoreState builder
-