Class ConditionReference

java.lang.Object
software.amazon.smithy.rulesengine.logic.ConditionReference

public final class ConditionReference extends Object
A reference to a condition and whether it is negated.
  • Constructor Details

    • ConditionReference

      public ConditionReference(Condition condition, boolean negated)
  • Method Details

    • isNegated

      public boolean isNegated()
      Returns true if this condition is negated (e.g., wrapped in not).
      Returns:
      true if negated.
    • negate

      public ConditionReference negate()
      Create a negated version of this reference.
      Returns:
      returns the negated reference.
    • getCondition

      public Condition getCondition()
      Get the underlying condition.
      Returns:
      condition.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object