Package io.resys.hdes.client.api.ast
Class ImmutableAstDecisionRow.Builder
java.lang.Object
io.resys.hdes.client.api.ast.ImmutableAstDecisionRow.Builder
- Enclosing class:
- ImmutableAstDecisionRow
Builds instances of type
ImmutableAstDecisionRow.
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 TypeMethodDescriptionaddAllCells(Iterable<? extends AstDecision.AstDecisionCell> elements) Adds elements tocellslist.addCells(AstDecision.AstDecisionCell element) Adds one element tocellslist.addCells(AstDecision.AstDecisionCell... elements) Adds elements tocellslist.build()Builds a newImmutableAstDecisionRow.cells(Iterable<? extends AstDecision.AstDecisionCell> elements) Sets or replaces all elements forcellslist.from(AstDecision.AstDecisionRow instance) Fill a builder with attribute values from the providedAstDecisionRowinstance.Initializes the value for theidattribute.order(int order) Initializes the value for theorderattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableAstDecisionRow.Builder from(AstDecision.AstDecisionRow instance) Fill a builder with attribute values from the providedAstDecisionRowinstance. 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
-
id
Initializes the value for theidattribute.- Parameters:
id- The value for id- Returns:
thisbuilder for use in a chained invocation
-
order
Initializes the value for theorderattribute.- Parameters:
order- The value for order- Returns:
thisbuilder for use in a chained invocation
-
addCells
@CanIgnoreReturnValue public final ImmutableAstDecisionRow.Builder addCells(AstDecision.AstDecisionCell element) Adds one element tocellslist.- Parameters:
element- A cells element- Returns:
thisbuilder for use in a chained invocation
-
addCells
@CanIgnoreReturnValue public final ImmutableAstDecisionRow.Builder addCells(AstDecision.AstDecisionCell... elements) Adds elements tocellslist.- Parameters:
elements- An array of cells elements- Returns:
thisbuilder for use in a chained invocation
-
cells
@CanIgnoreReturnValue public final ImmutableAstDecisionRow.Builder cells(Iterable<? extends AstDecision.AstDecisionCell> elements) Sets or replaces all elements forcellslist.- Parameters:
elements- An iterable of cells elements- Returns:
thisbuilder for use in a chained invocation
-
addAllCells
@CanIgnoreReturnValue public final ImmutableAstDecisionRow.Builder addAllCells(Iterable<? extends AstDecision.AstDecisionCell> elements) Adds elements tocellslist.- Parameters:
elements- An iterable of cells elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableAstDecisionRow.- Returns:
- An immutable instance of AstDecisionRow
- Throws:
IllegalStateException- if any required attributes are missing
-