Class ImmutableFlowProgramStep
java.lang.Object
io.resys.hdes.client.api.programs.ImmutableFlowProgramStep
- All Implemented Interfaces:
FlowProgram.FlowProgramStep,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableFlowProgramStep
extends Object
implements FlowProgram.FlowProgramStep
Immutable implementation of
FlowProgram.FlowProgramStep.
Use the builder to create immutable instances:
ImmutableFlowProgramStep.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableFlowProgramStep. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableFlowProgramStep.static ImmutableFlowProgramStepcopyOf(FlowProgram.FlowProgramStep instance) Creates an immutable copy of aFlowProgram.FlowProgramStepvalue.booleanThis instance is equal to all instances ofImmutableFlowProgramStepthat have equal attribute values.getBody()getId()inthashCode()Computes a hash code from attributes:id,pointer,body.toString()Prints the immutable valueFlowProgramStepwith attribute values.final ImmutableFlowProgramStepCopy the current immutable object by setting a value for thebodyattribute.final ImmutableFlowProgramStepCopy the current immutable object by setting a value for theidattribute.final ImmutableFlowProgramStepCopy the current immutable object by setting a value for thepointerattribute.
-
Method Details
-
getId
- Specified by:
getIdin interfaceFlowProgram.FlowProgramStep- Returns:
- The value of the
idattribute
-
getPointer
- Specified by:
getPointerin interfaceFlowProgram.FlowProgramStep- Returns:
- The value of the
pointerattribute
-
getBody
- Specified by:
getBodyin interfaceFlowProgram.FlowProgramStep- Returns:
- The value of the
bodyattribute
-
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
-
withPointer
Copy the current immutable object by setting a value for thepointerattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for pointer- Returns:
- A modified copy of the
thisobject
-
withBody
Copy the current immutable object by setting a value for thebodyattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for body (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableFlowProgramStepthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,pointer,body. -
toString
Prints the immutable valueFlowProgramStepwith attribute values. -
copyOf
Creates an immutable copy of aFlowProgram.FlowProgramStepvalue. 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 FlowProgramStep instance
-
builder
Creates a builder forImmutableFlowProgramStep.ImmutableFlowProgramStep.builder() .id(String) // requiredid.pointer(io.resys.hdes.client.api.programs.FlowProgram.FlowProgramStepPointer) // requiredpointer.body(io.resys.hdes.client.api.programs.FlowProgram.FlowProgramStepBody | null) // nullablebody.build();- Returns:
- A new ImmutableFlowProgramStep builder
-