Class ParentCondition

java.lang.Object
growthbook.sdk.java.ParentCondition

public class ParentCondition extends Object
A ParentCondition defines a prerequisite. It consists of a parent feature's id (string), a condition (Condition),and an optional gate (boolean) flag.
  • Constructor Details

    • ParentCondition

      public ParentCondition(String id, com.google.gson.JsonObject condition, Boolean gate)
    • ParentCondition

      public ParentCondition()
  • Method Details

    • getId

      public String getId()
      Parent feature's ID
    • getCondition

      public com.google.gson.JsonObject getCondition()
      Target condition
    • getGate

      public Boolean getGate()
      If gate is true, then this is a blocking feature-level prerequisite; otherwise it applies to the current rule only
    • setId

      public void setId(String id)
      Parent feature's ID
    • setCondition

      public void setCondition(com.google.gson.JsonObject condition)
      Target condition
    • setGate

      public void setGate(Boolean gate)
      If gate is true, then this is a blocking feature-level prerequisite; otherwise it applies to the current rule only
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object