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().

  • Method Details

    • getAccepts

      public com.google.common.collect.ImmutableMap<String,Serializable> getAccepts()
      Specified by:
      getAccepts in interface Program.FlowExecutionLog
      Returns:
      The value of the accepts attribute
    • getSteps

      public com.google.common.collect.ImmutableMap<String,FlowProgram.FlowResultLog> getSteps()
      Specified by:
      getSteps in interface Program.FlowExecutionLog
      Returns:
      The value of the steps attribute
    • withAccepts

      public final ImmutableFlowExecutionLog withAccepts(Map<String,? extends Serializable> entries)
      Copy the current immutable object by replacing the accepts map 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 returning this.
      Parameters:
      entries - The entries to be added to the accepts map
      Returns:
      A modified copy of this object
    • withSteps

      public final ImmutableFlowExecutionLog withSteps(Map<String,? extends FlowProgram.FlowResultLog> entries)
      Copy the current immutable object by replacing the steps map 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 returning this.
      Parameters:
      entries - The entries to be added to the steps map
      Returns:
      A modified copy of this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableFlowExecutionLog that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: accepts, steps.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value FlowExecutionLog with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ImmutableFlowExecutionLog copyOf(Program.FlowExecutionLog instance)
      Creates an immutable copy of a Program.FlowExecutionLog value. 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

      public static ImmutableFlowExecutionLog.Builder builder()
      Creates a builder for ImmutableFlowExecutionLog.
       ImmutableFlowExecutionLog.builder()
          .putAccepts|putAllAccepts(String => java.io.Serializable) // accepts mappings
          .putSteps|putAllSteps(String => io.resys.hdes.client.api.programs.FlowProgram.FlowResultLog) // steps mappings
          .build();
       
      Returns:
      A new ImmutableFlowExecutionLog builder