Class ImmutableDecisionLogEntry

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

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

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

See Also:
  • Method Details

    • getMatch

      public Boolean getMatch()
      Specified by:
      getMatch in interface DecisionProgram.DecisionLogEntry
      Returns:
      The value of the match attribute
    • getHeaderType

      public TypeDef getHeaderType()
      Specified by:
      getHeaderType in interface DecisionProgram.DecisionLogEntry
      Returns:
      The value of the headerType attribute
    • getExpression

      public String getExpression()
      Specified by:
      getExpression in interface DecisionProgram.DecisionLogEntry
      Returns:
      The value of the expression attribute
    • getUsedValue

      @Nullable public Serializable getUsedValue()
      Specified by:
      getUsedValue in interface DecisionProgram.DecisionLogEntry
      Returns:
      The value of the usedValue attribute
    • withMatch

      public final ImmutableDecisionLogEntry withMatch(Boolean value)
      Copy the current immutable object by setting a value for the match attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for match
      Returns:
      A modified copy of the this object
    • withHeaderType

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

      public final ImmutableDecisionLogEntry withExpression(String value)
      Copy the current immutable object by setting a value for the expression attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for expression
      Returns:
      A modified copy of the this object
    • withUsedValue

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

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

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

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

      public static ImmutableDecisionLogEntry.Builder builder()
      Creates a builder for ImmutableDecisionLogEntry.
       ImmutableDecisionLogEntry.builder()
          .match(Boolean) // required match
          .headerType(io.resys.hdes.client.api.ast.TypeDef) // required headerType
          .expression(String) // required expression
          .usedValue(java.io.Serializable | null) // nullable usedValue
          .build();
       
      Returns:
      A new ImmutableDecisionLogEntry builder