Package growthbook.sdk.java
Class FeatureResult.FeatureResultBuilder<ValueType>
java.lang.Object
growthbook.sdk.java.FeatureResult.FeatureResultBuilder<ValueType>
- Enclosing class:
- FeatureResult<ValueType>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
experiment
(Experiment<ValueType> experiment) When source is "experiment", this will be the Experiment object usedexperimentResult
(ExperimentResult<ValueType> experimentResult) When source is "experiment", this will be an ExperimentResult objectUnique identifier of rulesource
(FeatureResultSource source) One of "unknownFeature", "defaultValue", "force", "experiment", "cyclicPrerequisite" or "prerequisite"toString()
The assigned value of the feature
-
Method Details
-
value
The assigned value of the feature- Returns:
this
.
-
source
One of "unknownFeature", "defaultValue", "force", "experiment", "cyclicPrerequisite" or "prerequisite"- Returns:
this
.
-
experiment
public FeatureResult.FeatureResultBuilder<ValueType> experiment(@Nullable Experiment<ValueType> experiment) When source is "experiment", this will be the Experiment object used- Returns:
this
.
-
experimentResult
public FeatureResult.FeatureResultBuilder<ValueType> experimentResult(@Nullable ExperimentResult<ValueType> experimentResult) When source is "experiment", this will be an ExperimentResult object- Returns:
this
.
-
ruleId
Unique identifier of rule- Returns:
this
.
-
build
-
toString
-