Package growthbook.sdk.java
package growthbook.sdk.java
-
ClassDescriptionA tuple that describes a range of the number line between 0 and 1.A data type class used internally to help evaluate conditionsExperiment<ValueType>Defines a single ExperimentExperimentResult<ValueType>The result of an
GrowthBook.run(Experiment)
callA callback to be executed with anExperimentResult
whenever an experiment is run.Feature<ValueType>The feature with a generic value type.This error is thrown byGBFeaturesRepository
You can call getErrorCode() to get an enum of various error types you can handle.Error codes available for aFeatureFetchException
FeatureResult<ValueType>Results for aIFeatureEvaluator.evaluateFeature(String, GBContext, Class)
value (any) - The assigned value of the feature on (boolean) - The assigned value cast to a boolean off (boolean) - The assigned value cast to a boolean and then negated source (enum) - One of "unknownFeature", "defaultValue", "force", or "experiment" experiment (Experiment or null) - When source is "experiment", this will be an Experiment object experimentResult (ExperimentResult or null) - When source is "experiment", this will be an ExperimentResult objectAn enum of the possible sources for the feature resultFeatureRule<ValueType>Overrides the defaultValue of a Feature based on a set of requirements.Listen for feature usage eventsObject used for mutual exclusion and filtering users out of experiments based on random hashes.Context object passed into the GrowthBook constructor.The builder class to help create a context.This class can be created with its `builder()` or constructor.Appends User-Agent info to the request headers.GrowthBook SDK class.Deprecated.Operator for use in the condition JSONTrackData<ValueType>Used for remote feature evaluation to trigger theTrackingCallback
This callback is called with theExperiment
andExperimentResult
when an experiment is evaluated.Meta info about an experiment variationTag for the published GrowthBook SDK version