Class ImmutableFlowProgramStepConditionalThenPointer
java.lang.Object
io.resys.hdes.client.api.programs.ImmutableFlowProgramStepConditionalThenPointer
- All Implemented Interfaces:
FlowProgram.FlowProgramStepConditionalThenPointer
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableFlowProgramStepConditionalThenPointer
extends Object
implements FlowProgram.FlowProgramStepConditionalThenPointer
Immutable implementation of
FlowProgram.FlowProgramStepConditionalThenPointer.
Use the builder to create immutable instances:
ImmutableFlowProgramStepConditionalThenPointer.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableFlowProgramStepConditionalThenPointer. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableFlowProgramStepConditionalThenPointer.Creates an immutable copy of aFlowProgram.FlowProgramStepConditionalThenPointervalue.booleanThis instance is equal to all instances ofImmutableFlowProgramStepConditionalThenPointerthat have equal attribute values.inthashCode()Computes a hash code from attributes:expression,stepId.toString()Prints the immutable valueFlowProgramStepConditionalThenPointerwith attribute values.withExpression(ExpressionProgram value) Copy the current immutable object by setting a value for theexpressionattribute.withStepId(String value) Copy the current immutable object by setting a value for thestepIdattribute.
-
Method Details
-
getExpression
- Specified by:
getExpressionin interfaceFlowProgram.FlowProgramStepConditionalThenPointer- Returns:
- The value of the
expressionattribute
-
getStepId
- Specified by:
getStepIdin interfaceFlowProgram.FlowProgramStepConditionalThenPointer- Returns:
- The value of the
stepIdattribute
-
withExpression
public final ImmutableFlowProgramStepConditionalThenPointer withExpression(@Nullable ExpressionProgram value) Copy the current immutable object by setting a value for theexpressionattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for expression (can benull)- Returns:
- A modified copy of the
thisobject
-
withStepId
Copy the current immutable object by setting a value for thestepIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for stepId- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableFlowProgramStepConditionalThenPointerthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:expression,stepId. -
toString
Prints the immutable valueFlowProgramStepConditionalThenPointerwith attribute values. -
copyOf
public static ImmutableFlowProgramStepConditionalThenPointer copyOf(FlowProgram.FlowProgramStepConditionalThenPointer instance) Creates an immutable copy of aFlowProgram.FlowProgramStepConditionalThenPointervalue. 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 FlowProgramStepConditionalThenPointer instance
-
builder
Creates a builder forImmutableFlowProgramStepConditionalThenPointer.ImmutableFlowProgramStepConditionalThenPointer.builder() .expression(io.resys.hdes.client.api.programs.ExpressionProgram | null) // nullableexpression.stepId(String) // requiredstepId.build();- Returns:
- A new ImmutableFlowProgramStepConditionalThenPointer builder
-