Class ExperimentResult<ValueType>

java.lang.Object
growthbook.sdk.java.ExperimentResult<ValueType>
Type Parameters:
ValueType - generic type for the value type for this experiment's variations.

public class ExperimentResult<ValueType> extends Object
The result of an GrowthBook.run(Experiment) call
  • Constructor Details

    • ExperimentResult

      public ExperimentResult(@Nullable ValueType value, @Nullable Integer variationId, Boolean inExperiment, @Nullable String hashAttribute, @Nullable String hashValue, @Nullable String featureId, Boolean hashUsed, @Nullable String key, @Nullable String name, @Nullable Float bucket, @Nullable Boolean passThrough)
      The result of running an Experiment given a specific GBContext
      Parameters:
      value - The array value of the assigned variation
      variationId - The array index of the assigned variation
      inExperiment - Whether the user is part of the experiment or not
      hashAttribute - The user attribute used to assign a variation (default: "id")
      hashValue - The value of that attribute
      featureId - The id of the feature (if any) that the experiment came from
      hashUsed - If a hash was used to assign a variation
      key - The experiment key, if any
      name - The human-readable name of the assigned variation
      bucket - The hash value used to assign a variation (float from 0 to 1)
      passThrough - Used for holdout groups
  • Method Details