Package growthbook.sdk.java
Class ExperimentResult.ExperimentResultBuilder<ValueType>
java.lang.Object
growthbook.sdk.java.ExperimentResult.ExperimentResultBuilder<ValueType>
- Enclosing class:
- ExperimentResult<ValueType>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
hashAttribute
(String hashAttribute) inExperiment
(Boolean inExperiment) passThrough
(Boolean passThrough) stickyBucketUsed
(Boolean stickyBucketUsed) toString()
variationId
(Integer variationId)
-
Method Details
-
value
- Parameters:
value
- The array value of the assigned variation- Returns:
this
.
-
variationId
public ExperimentResult.ExperimentResultBuilder<ValueType> variationId(@Nullable Integer variationId) - Parameters:
variationId
- The array index of the assigned variation- Returns:
this
.
-
inExperiment
- Parameters:
inExperiment
- Whether the user is part of the experiment or not- Returns:
this
.
-
hashAttribute
public ExperimentResult.ExperimentResultBuilder<ValueType> hashAttribute(@Nullable String hashAttribute) - Parameters:
hashAttribute
- The user attribute used to assign a variation (default: "id")- Returns:
this
.
-
hashValue
- Parameters:
hashValue
- The value of that attribute- Returns:
this
.
-
featureId
- Parameters:
featureId
- The id of the feature (if any) that the experiment came from- Returns:
this
.
-
hashUsed
- Parameters:
hashUsed
- If a hash was used to assign a variation- Returns:
this
.
-
key
- Parameters:
key
- The experiment key, if any- Returns:
this
.
-
name
- Parameters:
name
- The human-readable name of the assigned variation- Returns:
this
.
-
bucket
- Parameters:
bucket
- The hash value used to assign a variation (float from 0 to 1)- Returns:
this
.
-
passThrough
public ExperimentResult.ExperimentResultBuilder<ValueType> passThrough(@Nullable Boolean passThrough) - Returns:
this
.
-
stickyBucketUsed
public ExperimentResult.ExperimentResultBuilder<ValueType> stickyBucketUsed(@Nullable Boolean stickyBucketUsed) - Returns:
this
.
-
build
-
toString
-