Class ImmutableDecisionRowReturns

java.lang.Object
io.resys.hdes.client.api.programs.ImmutableDecisionRowReturns
All Implemented Interfaces:
DecisionProgram.DecisionRowReturns, Serializable

@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableDecisionRowReturns extends Object implements DecisionProgram.DecisionRowReturns
Immutable implementation of DecisionProgram.DecisionRowReturns.

Use the builder to create immutable instances: ImmutableDecisionRowReturns.builder().

See Also:
  • Method Details

    • getKey

      public TypeDef getKey()
      Specified by:
      getKey in interface DecisionProgram.DecisionRowReturns
      Returns:
      The value of the key attribute
    • getValue

      public Serializable getValue()
      Specified by:
      getValue in interface DecisionProgram.DecisionRowReturns
      Returns:
      The value of the value attribute
    • withKey

      public final ImmutableDecisionRowReturns withKey(TypeDef value)
      Copy the current immutable object by setting a value for the key attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for key
      Returns:
      A modified copy of the this object
    • withValue

      public final ImmutableDecisionRowReturns withValue(Serializable value)
      Copy the current immutable object by setting a value for the value attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for value
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableDecisionRowReturns 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: key, value.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      Creates an immutable copy of a DecisionProgram.DecisionRowReturns 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 DecisionRowReturns instance
    • builder

      public static ImmutableDecisionRowReturns.Builder builder()
      Creates a builder for ImmutableDecisionRowReturns.
       ImmutableDecisionRowReturns.builder()
          .key(io.resys.hdes.client.api.ast.TypeDef) // required key
          .value(java.io.Serializable) // required value
          .build();
       
      Returns:
      A new ImmutableDecisionRowReturns builder