Package io.resys.hdes.client.api.ast
Class ImmutableAstTagSummary
java.lang.Object
io.resys.hdes.client.api.ast.ImmutableAstTagSummary
- All Implemented Interfaces:
AstTagSummary,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableAstTagSummary
extends Object
implements AstTagSummary
Immutable implementation of
AstTagSummary.
Use the builder to create immutable instances:
ImmutableAstTagSummary.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableAstTagSummary.Nested classes/interfaces inherited from interface io.resys.hdes.client.api.ast.AstTagSummary
AstTagSummary.SummaryItem -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableAstTagSummary.static ImmutableAstTagSummarycopyOf(AstTagSummary instance) Creates an immutable copy of aAstTagSummaryvalue.booleanThis instance is equal to all instances ofImmutableAstTagSummarythat have equal attribute values.com.google.common.collect.ImmutableList<AstTagSummary.SummaryItem>com.google.common.collect.ImmutableList<AstTagSummary.SummaryItem>getFlows()com.google.common.collect.ImmutableList<AstTagSummary.SummaryItem>inthashCode()Computes a hash code from attributes:tagName,flows,decisions,services.toString()Prints the immutable valueAstTagSummarywith attribute values.final ImmutableAstTagSummarywithDecisions(AstTagSummary.SummaryItem... elements) Copy the current immutable object with elements that replace the content ofdecisions.final ImmutableAstTagSummarywithDecisions(Iterable<? extends AstTagSummary.SummaryItem> elements) Copy the current immutable object with elements that replace the content ofdecisions.final ImmutableAstTagSummarywithFlows(AstTagSummary.SummaryItem... elements) Copy the current immutable object with elements that replace the content offlows.final ImmutableAstTagSummarywithFlows(Iterable<? extends AstTagSummary.SummaryItem> elements) Copy the current immutable object with elements that replace the content offlows.final ImmutableAstTagSummarywithServices(AstTagSummary.SummaryItem... elements) Copy the current immutable object with elements that replace the content ofservices.final ImmutableAstTagSummarywithServices(Iterable<? extends AstTagSummary.SummaryItem> elements) Copy the current immutable object with elements that replace the content ofservices.final ImmutableAstTagSummarywithTagName(String value) Copy the current immutable object by setting a value for thetagNameattribute.
-
Method Details
-
getTagName
- Specified by:
getTagNamein interfaceAstTagSummary- Returns:
- The value of the
tagNameattribute
-
getFlows
- Specified by:
getFlowsin interfaceAstTagSummary- Returns:
- The value of the
flowsattribute
-
getDecisions
- Specified by:
getDecisionsin interfaceAstTagSummary- Returns:
- The value of the
decisionsattribute
-
getServices
- Specified by:
getServicesin interfaceAstTagSummary- Returns:
- The value of the
servicesattribute
-
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
-
withFlows
Copy the current immutable object with elements that replace the content offlows.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withFlows
public final ImmutableAstTagSummary withFlows(Iterable<? extends AstTagSummary.SummaryItem> elements) Copy the current immutable object with elements that replace the content offlows. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of flows elements to set- Returns:
- A modified copy of
thisobject
-
withDecisions
Copy the current immutable object with elements that replace the content ofdecisions.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withDecisions
public final ImmutableAstTagSummary withDecisions(Iterable<? extends AstTagSummary.SummaryItem> elements) Copy the current immutable object with elements that replace the content ofdecisions. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of decisions elements to set- Returns:
- A modified copy of
thisobject
-
withServices
Copy the current immutable object with elements that replace the content ofservices.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withServices
public final ImmutableAstTagSummary withServices(Iterable<? extends AstTagSummary.SummaryItem> elements) Copy the current immutable object with elements that replace the content ofservices. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of services elements to set- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableAstTagSummarythat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:tagName,flows,decisions,services. -
toString
Prints the immutable valueAstTagSummarywith attribute values. -
copyOf
Creates an immutable copy of aAstTagSummaryvalue. 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 AstTagSummary instance
-
builder
Creates a builder forImmutableAstTagSummary.ImmutableAstTagSummary.builder() .tagName(String) // requiredtagName.addFlows|addAllFlows(io.resys.hdes.client.api.ast.AstTagSummary.SummaryItem) //flowselements .addDecisions|addAllDecisions(io.resys.hdes.client.api.ast.AstTagSummary.SummaryItem) //decisionselements .addServices|addAllServices(io.resys.hdes.client.api.ast.AstTagSummary.SummaryItem) //serviceselements .build();- Returns:
- A new ImmutableAstTagSummary builder
-