Class ImmutableFlowProgramStepWhenThenPointer
java.lang.Object
io.resys.hdes.client.api.programs.ImmutableFlowProgramStepWhenThenPointer
- All Implemented Interfaces:
FlowProgram.FlowProgramStepPointer,FlowProgram.FlowProgramStepWhenThenPointer,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableFlowProgramStepWhenThenPointer
extends Object
implements FlowProgram.FlowProgramStepWhenThenPointer
Immutable implementation of
FlowProgram.FlowProgramStepWhenThenPointer.
Use the builder to create immutable instances:
ImmutableFlowProgramStepWhenThenPointer.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableFlowProgramStepWhenThenPointer. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableFlowProgramStepWhenThenPointer.Creates an immutable copy of aFlowProgram.FlowProgramStepWhenThenPointervalue.booleanThis instance is equal to all instances ofImmutableFlowProgramStepWhenThenPointerthat have equal attribute values.com.google.common.collect.ImmutableList<FlowProgram.FlowProgramStepConditionalThenPointer>getType()inthashCode()Computes a hash code from attributes:type,conditions.toString()Prints the immutable valueFlowProgramStepWhenThenPointerwith attribute values.Copy the current immutable object with elements that replace the content ofconditions.withConditions(Iterable<? extends FlowProgram.FlowProgramStepConditionalThenPointer> elements) Copy the current immutable object with elements that replace the content ofconditions.Copy the current immutable object by setting a value for thetypeattribute.
-
Method Details
-
getType
- Specified by:
getTypein interfaceFlowProgram.FlowProgramStepPointer- Returns:
- The value of the
typeattribute
-
getConditions
public com.google.common.collect.ImmutableList<FlowProgram.FlowProgramStepConditionalThenPointer> getConditions()- Specified by:
getConditionsin interfaceFlowProgram.FlowProgramStepWhenThenPointer- Returns:
- The value of the
conditionsattribute
-
withType
public final ImmutableFlowProgramStepWhenThenPointer withType(FlowProgram.FlowProgramStepPointerType value) Copy the current immutable object by setting a value for thetypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy of the
thisobject
-
withConditions
public final ImmutableFlowProgramStepWhenThenPointer withConditions(FlowProgram.FlowProgramStepConditionalThenPointer... elements) Copy the current immutable object with elements that replace the content ofconditions.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withConditions
public final ImmutableFlowProgramStepWhenThenPointer withConditions(Iterable<? extends FlowProgram.FlowProgramStepConditionalThenPointer> elements) Copy the current immutable object with elements that replace the content ofconditions. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of conditions elements to set- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableFlowProgramStepWhenThenPointerthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,conditions. -
toString
Prints the immutable valueFlowProgramStepWhenThenPointerwith attribute values. -
copyOf
public static ImmutableFlowProgramStepWhenThenPointer copyOf(FlowProgram.FlowProgramStepWhenThenPointer instance) Creates an immutable copy of aFlowProgram.FlowProgramStepWhenThenPointervalue. 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 FlowProgramStepWhenThenPointer instance
-
builder
Creates a builder forImmutableFlowProgramStepWhenThenPointer.ImmutableFlowProgramStepWhenThenPointer.builder() .type(io.resys.hdes.client.api.programs.FlowProgram.FlowProgramStepPointerType) // requiredtype.addConditions|addAllConditions(io.resys.hdes.client.api.programs.FlowProgram.FlowProgramStepConditionalThenPointer) //conditionselements .build();- Returns:
- A new ImmutableFlowProgramStepWhenThenPointer builder
-