Package io.resys.hdes.client.api.ast
Class ImmutableAstDecisionCell
java.lang.Object
io.resys.hdes.client.api.ast.ImmutableAstDecisionCell
- All Implemented Interfaces:
AstDecision.AstDecisionCell,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableAstDecisionCell
extends Object
implements AstDecision.AstDecisionCell
Immutable implementation of
AstDecision.AstDecisionCell.
Use the builder to create immutable instances:
ImmutableAstDecisionCell.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableAstDecisionCell. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableAstDecisionCell.static ImmutableAstDecisionCellcopyOf(AstDecision.AstDecisionCell instance) Creates an immutable copy of aAstDecision.AstDecisionCellvalue.booleanThis instance is equal to all instances ofImmutableAstDecisionCellthat have equal attribute values.getId()getValue()inthashCode()Computes a hash code from attributes:id,header,value.toString()Prints the immutable valueAstDecisionCellwith attribute values.final ImmutableAstDecisionCellwithHeader(String value) Copy the current immutable object by setting a value for theheaderattribute.final ImmutableAstDecisionCellCopy the current immutable object by setting a value for theidattribute.final ImmutableAstDecisionCellCopy the current immutable object by setting a value for thevalueattribute.
-
Method Details
-
getId
- Specified by:
getIdin interfaceAstDecision.AstDecisionCell- Returns:
- The value of the
idattribute
-
getHeader
- Specified by:
getHeaderin interfaceAstDecision.AstDecisionCell- Returns:
- The value of the
headerattribute
-
getValue
- Specified by:
getValuein interfaceAstDecision.AstDecisionCell- Returns:
- The value of the
valueattribute
-
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
-
withHeader
Copy the current immutable object by setting a value for theheaderattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for header- Returns:
- A modified copy of the
thisobject
-
withValue
Copy the current immutable object by setting a value for thevalueattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for value (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableAstDecisionCellthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,header,value. -
toString
Prints the immutable valueAstDecisionCellwith attribute values. -
copyOf
Creates an immutable copy of aAstDecision.AstDecisionCellvalue. 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 AstDecisionCell instance
-
builder
Creates a builder forImmutableAstDecisionCell.ImmutableAstDecisionCell.builder() .id(String) // requiredid.header(String) // requiredheader.value(String | null) // nullablevalue.build();- Returns:
- A new ImmutableAstDecisionCell builder
-