Class ImmutableFlowExecutionLog
java.lang.Object
io.resys.hdes.client.api.programs.ImmutableFlowExecutionLog
- All Implemented Interfaces:
Program.ExecutionLog,Program.FlowExecutionLog
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableFlowExecutionLog
extends Object
implements Program.FlowExecutionLog
Immutable implementation of
Program.FlowExecutionLog.
Use the builder to create immutable instances:
ImmutableFlowExecutionLog.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableFlowExecutionLog. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableFlowExecutionLog.static ImmutableFlowExecutionLogcopyOf(Program.FlowExecutionLog instance) Creates an immutable copy of aProgram.FlowExecutionLogvalue.booleanThis instance is equal to all instances ofImmutableFlowExecutionLogthat have equal attribute values.com.google.common.collect.ImmutableMap<String,Serializable> com.google.common.collect.ImmutableMap<String,FlowProgram.FlowResultLog> getSteps()inthashCode()Computes a hash code from attributes:accepts,steps.toString()Prints the immutable valueFlowExecutionLogwith attribute values.withAccepts(Map<String, ? extends Serializable> entries) Copy the current immutable object by replacing theacceptsmap with the specified map.withSteps(Map<String, ? extends FlowProgram.FlowResultLog> entries) Copy the current immutable object by replacing thestepsmap with the specified map.
-
Method Details
-
getAccepts
- Specified by:
getAcceptsin interfaceProgram.FlowExecutionLog- Returns:
- The value of the
acceptsattribute
-
getSteps
- Specified by:
getStepsin interfaceProgram.FlowExecutionLog- Returns:
- The value of the
stepsattribute
-
withAccepts
Copy the current immutable object by replacing theacceptsmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the accepts map- Returns:
- A modified copy of
thisobject
-
withSteps
public final ImmutableFlowExecutionLog withSteps(Map<String, ? extends FlowProgram.FlowResultLog> entries) Copy the current immutable object by replacing thestepsmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the steps map- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableFlowExecutionLogthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:accepts,steps. -
toString
Prints the immutable valueFlowExecutionLogwith attribute values. -
copyOf
Creates an immutable copy of aProgram.FlowExecutionLogvalue. 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 FlowExecutionLog instance
-
builder
Creates a builder forImmutableFlowExecutionLog.ImmutableFlowExecutionLog.builder() .putAccepts|putAllAccepts(String => java.io.Serializable) //acceptsmappings .putSteps|putAllSteps(String => io.resys.hdes.client.api.programs.FlowProgram.FlowResultLog) //stepsmappings .build();- Returns:
- A new ImmutableFlowExecutionLog builder
-