Package growthbook.sdk.java.model
Class ParentCondition
java.lang.Object
growthbook.sdk.java.model.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
ConstructorsConstructorDescriptionParentCondition(String id, com.google.gson.JsonObject condition, Boolean gate) -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.google.gson.JsonObjectTarget conditiongetGate()If gate is true, then this is a blocking feature-level prerequisite; otherwise it applies to the current rule onlygetId()Parent feature's IDinthashCode()voidsetCondition(com.google.gson.JsonObject condition) Target conditionvoidIf gate is true, then this is a blocking feature-level prerequisite; otherwise it applies to the current rule onlyvoidParent 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
-