Package io.resys.hdes.client.api.ast
Class ImmutableAstDecisionRow
java.lang.Object
io.resys.hdes.client.api.ast.ImmutableAstDecisionRow
- All Implemented Interfaces:
AstDecision.AstDecisionRow,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableAstDecisionRow
extends Object
implements AstDecision.AstDecisionRow
Immutable implementation of
AstDecision.AstDecisionRow.
Use the builder to create immutable instances:
ImmutableAstDecisionRow.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableAstDecisionRow. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableAstDecisionRow.static ImmutableAstDecisionRowcopyOf(AstDecision.AstDecisionRow instance) Creates an immutable copy of aAstDecision.AstDecisionRowvalue.booleanThis instance is equal to all instances ofImmutableAstDecisionRowthat have equal attribute values.com.google.common.collect.ImmutableList<AstDecision.AstDecisionCell>getCells()getId()intgetOrder()inthashCode()Computes a hash code from attributes:id,order,cells.toString()Prints the immutable valueAstDecisionRowwith attribute values.final ImmutableAstDecisionRowwithCells(AstDecision.AstDecisionCell... elements) Copy the current immutable object with elements that replace the content ofcells.final ImmutableAstDecisionRowwithCells(Iterable<? extends AstDecision.AstDecisionCell> elements) Copy the current immutable object with elements that replace the content ofcells.final ImmutableAstDecisionRowCopy the current immutable object by setting a value for theidattribute.final ImmutableAstDecisionRowwithOrder(int value) Copy the current immutable object by setting a value for theorderattribute.
-
Method Details
-
getId
- Specified by:
getIdin interfaceAstDecision.AstDecisionRow- Returns:
- The value of the
idattribute
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceAstDecision.AstDecisionRow- Returns:
- The value of the
orderattribute
-
getCells
- Specified by:
getCellsin interfaceAstDecision.AstDecisionRow- Returns:
- The value of the
cellsattribute
-
withId
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy of the
thisobject
-
withOrder
Copy the current immutable object by setting a value for theorderattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for order- Returns:
- A modified copy of the
thisobject
-
withCells
Copy the current immutable object with elements that replace the content ofcells.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withCells
public final ImmutableAstDecisionRow withCells(Iterable<? extends AstDecision.AstDecisionCell> elements) Copy the current immutable object with elements that replace the content ofcells. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of cells elements to set- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableAstDecisionRowthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,order,cells. -
toString
Prints the immutable valueAstDecisionRowwith attribute values. -
copyOf
Creates an immutable copy of aAstDecision.AstDecisionRowvalue. 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 AstDecisionRow instance
-
builder
Creates a builder forImmutableAstDecisionRow.ImmutableAstDecisionRow.builder() .id(String) // requiredid.order(int) // requiredorder.addCells|addAllCells(io.resys.hdes.client.api.ast.AstDecision.AstDecisionCell) //cellselements .build();- Returns:
- A new ImmutableAstDecisionRow builder
-