Class ImmutableBranchProgram
java.lang.Object
io.resys.hdes.client.api.programs.ImmutableBranchProgram
- All Implemented Interfaces:
BranchProgram,Program,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableBranchProgram
extends Object
implements BranchProgram
Immutable implementation of
BranchProgram.
Use the builder to create immutable instances:
ImmutableBranchProgram.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableBranchProgram.Nested classes/interfaces inherited from interface io.resys.hdes.client.api.programs.Program
Program.ExecutionLog, Program.FlowExecutionLog, Program.ProgramContext, Program.ProgramContextNamedValue, Program.ProgramResult -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableBranchProgram.static ImmutableBranchProgramcopyOf(BranchProgram instance) Creates an immutable copy of aBranchProgramvalue.booleanThis instance is equal to all instances ofImmutableBranchProgramthat have equal attribute values.inthashCode()Returns a constant hash code value.toString()Prints the immutable valueBranchProgram.
-
Method Details
-
equals
This instance is equal to all instances ofImmutableBranchProgramthat have equal attribute values. -
hashCode
public int hashCode()Returns a constant hash code value. -
toString
Prints the immutable valueBranchProgram. -
copyOf
Creates an immutable copy of aBranchProgramvalue. 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 BranchProgram instance
-
builder
Creates a builder forImmutableBranchProgram.ImmutableBranchProgram.builder() .build();- Returns:
- A new ImmutableBranchProgram builder
-