Package growthbook.sdk.java
Class ParentCondition
java.lang.Object
growthbook.sdk.java.ParentCondition
A ParentCondition defines a prerequisite. It consists of a parent feature's id (string),
a condition (Condition),and an optional gate (boolean) flag.
-
Constructor Summary
ConstructorDescriptionParentCondition
(String id, com.google.gson.JsonObject condition, Boolean gate) -
Method Summary
Modifier and TypeMethodDescriptionboolean
com.google.gson.JsonObject
Target conditiongetGate()
If gate is true, then this is a blocking feature-level prerequisite; otherwise it applies to the current rule onlygetId()
Parent feature's IDint
hashCode()
void
setCondition
(com.google.gson.JsonObject condition) Target conditionvoid
If gate is true, then this is a blocking feature-level prerequisite; otherwise it applies to the current rule onlyvoid
Parent feature's IDtoString()
-
Constructor Details
-
ParentCondition
-
ParentCondition
public ParentCondition()
-
-
Method Details
-
getId
Parent feature's ID -
getCondition
public com.google.gson.JsonObject getCondition()Target condition -
getGate
If gate is true, then this is a blocking feature-level prerequisite; otherwise it applies to the current rule only -
setId
Parent feature's ID -
setCondition
public void setCondition(com.google.gson.JsonObject condition) Target condition -
setGate
If gate is true, then this is a blocking feature-level prerequisite; otherwise it applies to the current rule only -
equals
-
hashCode
public int hashCode() -
toString
-