Index
All Classes and Interfaces|All Packages|Serialized Form
A
- ALL - Enum constant in enum class growthbook.sdk.java.Operator
-
$all
- ARRAY - Enum constant in enum class growthbook.sdk.java.DataType
-
when the type is an array
B
- BOOLEAN - Enum constant in enum class growthbook.sdk.java.DataType
-
when the type is a boolean
- BucketRange - Class in growthbook.sdk.java
-
A tuple that describes a range of the number line between 0 and 1.
- BucketRange() - Constructor for class growthbook.sdk.java.BucketRange
- builder() - Static method in class growthbook.sdk.java.GBContext
-
The builder class to help create a context.
C
- clearCallbacks() - Method in class growthbook.sdk.java.GBFeaturesRepository
- CONFIGURATION_ERROR - Enum constant in enum class growthbook.sdk.java.FeatureFetchException.FeatureFetchErrorCode
-
- an encryptionKey was provided but the endpoint does not support encryption so decryption fails - no features were found for an unencrypted endpoint
D
- DataType - Enum Class in growthbook.sdk.java
-
A data type class used internally to help evaluate conditions
- DEFAULT_VALUE - Enum constant in enum class growthbook.sdk.java.FeatureResultSource
-
When the value is assigned due to a default value condition
- destroy() - Method in class growthbook.sdk.java.GrowthBook
E
- ELEMENT_MATCH - Enum constant in enum class growthbook.sdk.java.Operator
-
$elemMatch
- EQ - Enum constant in enum class growthbook.sdk.java.Operator
-
$eq
- equals(Object) - Method in class growthbook.sdk.java.BucketRange
- evalFeature(String, Class<ValueType>) - Method in class growthbook.sdk.java.GrowthBook
- evaluateCondition(String, String) - Method in class growthbook.sdk.java.GrowthBook
- EXISTS - Enum constant in enum class growthbook.sdk.java.Operator
-
$exists
- Experiment<ValueType> - Class in growthbook.sdk.java
-
Defines a single Experiment
- Experiment() - Constructor for class growthbook.sdk.java.Experiment
- EXPERIMENT - Enum constant in enum class growthbook.sdk.java.FeatureResultSource
-
When the value is assigned due to an experiment condition
- ExperimentResult<ValueType> - Class in growthbook.sdk.java
-
The result of running an
Experimentgiven a specificGBContextinExperiment (boolean) - Whether or not the user is part of the experiment variationId (int) - The array index of the assigned variation value (any) - The array value of the assigned variation hashUsed (boolean) - If a hash was used to assign a variation hashAttribute (string) - The user attribute used to assign a variation hashValue (string) - The value of that attribute featureId (string or null) - The id of the feature (if any) that the experiment came from - ExperimentResult() - Constructor for class growthbook.sdk.java.ExperimentResult
- ExperimentRunCallback - Interface in growthbook.sdk.java
-
A callback to be executed with an
ExperimentResultwhenever an experiment is run.
F
- Feature<ValueType> - Class in growthbook.sdk.java
-
The feature with a generic value type.
- Feature(String) - Constructor for class growthbook.sdk.java.Feature
-
Construct a feature with the JSON string
- FeatureFetchException - Exception in growthbook.sdk.java
-
This error is thrown by
GBFeaturesRepositoryYou can call getErrorCode() to get an enum of various error types you can handle. - FeatureFetchException(FeatureFetchException.FeatureFetchErrorCode) - Constructor for exception growthbook.sdk.java.FeatureFetchException
-
Create an exception with error code
- FeatureFetchException(FeatureFetchException.FeatureFetchErrorCode, String) - Constructor for exception growthbook.sdk.java.FeatureFetchException
-
Create an exception with error code and custom message
- FeatureFetchException.FeatureFetchErrorCode - Enum Class in growthbook.sdk.java
-
Error codes available for a
FeatureFetchException - FeatureRefreshCallback - Interface in growthbook.sdk.java
- FeatureResult<ValueType> - Class in growthbook.sdk.java
-
Results for a
IFeatureEvaluator.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 object - FeatureResult() - Constructor for class growthbook.sdk.java.FeatureResult
- FeatureResultSource - Enum Class in growthbook.sdk.java
-
An enum of the possible sources for the feature result
- FeatureRule<ValueType> - Class in growthbook.sdk.java
-
Overrides the defaultValue of a Feature based on a set of requirements.
- FeatureRule() - Constructor for class growthbook.sdk.java.FeatureRule
- FORCE - Enum constant in enum class growthbook.sdk.java.FeatureResultSource
-
When the value is assigned due to a forced condition
- fromString(String) - Static method in enum class growthbook.sdk.java.FeatureResultSource
-
Get a nullable enum Operator from the string value.
- fromString(String) - Static method in enum class growthbook.sdk.java.Operator
-
Get a nullable enum Operator from the string value.
G
- GBContext - Class in growthbook.sdk.java
-
Context object passed into the GrowthBook constructor.
- GBContext(String, String, String, Boolean, Boolean, String, Boolean, Map<String, Integer>, TrackingCallback) - Constructor for class growthbook.sdk.java.GBContext
-
The
GBContext.GBContextBuilderis recommended for constructing a Context. - GBContext.GBContextBuilder - Class in growthbook.sdk.java
-
The builder class to help create a context.
- GBContextBuilder() - Constructor for class growthbook.sdk.java.GBContext.GBContextBuilder
- GBFeaturesRepository - Class in growthbook.sdk.java
-
This class can be created with its `builder()` or constructor.
- GBFeaturesRepository(String, String, Integer) - Constructor for class growthbook.sdk.java.GBFeaturesRepository
-
Create a new GBFeaturesRepository
- getDefaultValue() - Method in class growthbook.sdk.java.Feature
-
The default value for a feature evaluation
- getDeserializer() - Static method in class growthbook.sdk.java.BucketRange
- getDeserializer() - Static method in class growthbook.sdk.java.Namespace
-
a Gson deserializer for
Namespace - getFeaturesJson() - Method in class growthbook.sdk.java.GBFeaturesRepository
- getFeatureValue(String, Boolean) - Method in class growthbook.sdk.java.GrowthBook
- getFeatureValue(String, Double) - Method in class growthbook.sdk.java.GrowthBook
- getFeatureValue(String, Float) - Method in class growthbook.sdk.java.GrowthBook
- getFeatureValue(String, Integer) - Method in class growthbook.sdk.java.GrowthBook
- getFeatureValue(String, Object) - Method in class growthbook.sdk.java.GrowthBook
- getFeatureValue(String, String) - Method in class growthbook.sdk.java.GrowthBook
- getFeatureValue(String, ValueType, Class<ValueType>) - Method in class growthbook.sdk.java.GrowthBook
- getJson(Experiment<ValueType>) - Static method in class growthbook.sdk.java.Experiment
-
Get a Gson JsonElement of the experiment
- getJson(FeatureResult<ValueType>) - Static method in class growthbook.sdk.java.FeatureResult
-
Get a Gson JsonElement of the
FeatureResult - getRules() - Method in class growthbook.sdk.java.Feature
-
Returns the rules for evaluating the feature
- getSerializer() - Static method in class growthbook.sdk.java.BucketRange
- getSerializer() - Static method in class growthbook.sdk.java.Experiment
-
A Gson serializer for
Experiment - getSerializer() - Static method in class growthbook.sdk.java.ExperimentResult
-
A Gson serializer for
ExperimentResult - getSerializer() - Static method in class growthbook.sdk.java.FeatureResult
-
a Gson serializer for
FeatureResult - getSerializer() - Static method in class growthbook.sdk.java.Namespace
-
a Gson serializer for
Namespace - GrowthBook - Class in growthbook.sdk.java
-
GrowthBook SDK class.
- GrowthBook() - Constructor for class growthbook.sdk.java.GrowthBook
-
No-args constructor.
- GrowthBook(GBContext) - Constructor for class growthbook.sdk.java.GrowthBook
-
Initialize the GrowthBook SDK with a provided
GBContext - growthbook.sdk.java - package growthbook.sdk.java
- GT - Enum constant in enum class growthbook.sdk.java.Operator
-
$gt
- GTE - Enum constant in enum class growthbook.sdk.java.Operator
-
$gte
H
- hashCode() - Method in class growthbook.sdk.java.BucketRange
I
- IN - Enum constant in enum class growthbook.sdk.java.Operator
-
$in
- initialize() - Method in class growthbook.sdk.java.GBFeaturesRepository
- isOff() - Method in class growthbook.sdk.java.FeatureResult
-
Evaluates to true when the feature is off
- isOff(String) - Method in class growthbook.sdk.java.GrowthBook
- isOn() - Method in class growthbook.sdk.java.FeatureResult
-
Evaluates to true when the feature is on
- isOn(String) - Method in class growthbook.sdk.java.GrowthBook
L
- LT - Enum constant in enum class growthbook.sdk.java.Operator
-
$lt
- LTE - Enum constant in enum class growthbook.sdk.java.Operator
-
$lte
N
- Namespace - Class in growthbook.sdk.java
-
A tuple that specifies what part of a namespace an experiment includes.
- Namespace() - Constructor for class growthbook.sdk.java.Namespace
- NE - Enum constant in enum class growthbook.sdk.java.Operator
-
$ne
- NIN - Enum constant in enum class growthbook.sdk.java.Operator
-
$nin
- NO_RESPONSE_ERROR - Enum constant in enum class growthbook.sdk.java.FeatureFetchException.FeatureFetchErrorCode
-
- there was no response body
- NOT - Enum constant in enum class growthbook.sdk.java.Operator
-
$not
- NULL - Enum constant in enum class growthbook.sdk.java.DataType
-
when the type is a JSON null
- NUMBER - Enum constant in enum class growthbook.sdk.java.DataType
-
when the type is a number
O
- OBJECT - Enum constant in enum class growthbook.sdk.java.DataType
-
when the type is an object
- onFeaturesRefresh(FeatureRefreshCallback) - Method in class growthbook.sdk.java.GBFeaturesRepository
-
Subscribe to feature refresh events This callback is called when the features are successfully refreshed.
- onRefresh(String) - Method in interface growthbook.sdk.java.FeatureRefreshCallback
- onRun(ExperimentResult) - Method in interface growthbook.sdk.java.ExperimentRunCallback
-
A callback to be executed with an
ExperimentResultwhenever an experiment is run. - onTrack(Experiment<ValueType>, ExperimentResult<ValueType>) - Method in interface growthbook.sdk.java.TrackingCallback
-
This callback is called with the
ExperimentandExperimentResultwhen an experiment is evaluated. - Operator - Enum Class in growthbook.sdk.java
-
Operator for use in the condition JSON
R
- REGEX - Enum constant in enum class growthbook.sdk.java.Operator
-
$regex
- run(Experiment<ValueType>) - Method in class growthbook.sdk.java.GrowthBook
S
- setAttributes(String) - Method in class growthbook.sdk.java.GrowthBook
- setAttributesJson(String) - Method in class growthbook.sdk.java.GBContext
-
You can update the attributes JSON with new user attributes to evaluate against.
- setFeatures(String) - Method in class growthbook.sdk.java.GrowthBook
- setFeaturesJson(String) - Method in class growthbook.sdk.java.GBContext
-
You can update the features JSON with new features to evaluate against.
- SIZE - Enum constant in enum class growthbook.sdk.java.Operator
-
$size
- STRING - Enum constant in enum class growthbook.sdk.java.DataType
-
when the type is a string
- subscribe(ExperimentRunCallback) - Method in class growthbook.sdk.java.GrowthBook
T
- toJson() - Method in class growthbook.sdk.java.BucketRange
-
Converts the bucket range to the serialized tuple
- toJson() - Method in class growthbook.sdk.java.Experiment
-
Get a Gson JsonElement of the experiment
- toJson() - Method in class growthbook.sdk.java.ExperimentResult
-
Serialized JSON string of the
ExperimentResult - toJson() - Method in class growthbook.sdk.java.FeatureResult
-
Get a Gson JsonElement of the
FeatureResult - toJson() - Method in class growthbook.sdk.java.Namespace
-
A JSON string for the namespace, resulting in a triple value [id, rangeStart, rangeEnd]
- toString() - Method in class growthbook.sdk.java.BucketRange
- toString() - Method in enum class growthbook.sdk.java.DataType
- toString() - Method in class growthbook.sdk.java.Experiment
- toString() - Method in enum class growthbook.sdk.java.FeatureResultSource
- toString() - Method in class growthbook.sdk.java.Namespace
- toString() - Method in enum class growthbook.sdk.java.Operator
- TrackingCallback - Interface in growthbook.sdk.java
-
This callback is called with the
ExperimentandExperimentResultwhen an experiment is evaluated. - TYPE - Enum constant in enum class growthbook.sdk.java.Operator
-
$type
U
- UNDEFINED - Enum constant in enum class growthbook.sdk.java.DataType
-
when the type is not present, e.g.
- UNKNOWN - Enum constant in enum class growthbook.sdk.java.DataType
-
when the type is unknown.
- UNKNOWN - Enum constant in enum class growthbook.sdk.java.FeatureFetchException.FeatureFetchErrorCode
-
- there was an unknown error that occurred when attempting to make the request.
- UNKNOWN_FEATURE - Enum constant in enum class growthbook.sdk.java.FeatureResultSource
-
When the feature is unknown
- URL_OVERRIDE - Enum constant in enum class growthbook.sdk.java.FeatureResultSource
-
When the value is assigned due to forced feature assignment via the URL
V
- valueOf(String) - Static method in enum class growthbook.sdk.java.DataType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class growthbook.sdk.java.FeatureFetchException.FeatureFetchErrorCode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class growthbook.sdk.java.FeatureResultSource
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class growthbook.sdk.java.Operator
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class growthbook.sdk.java.DataType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class growthbook.sdk.java.FeatureFetchException.FeatureFetchErrorCode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class growthbook.sdk.java.FeatureResultSource
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class growthbook.sdk.java.Operator
-
Returns an array containing the constants of this enum class, in the order they are declared.
- Version - Class in growthbook.sdk.java
-
Tag for the published GrowthBook SDK version
All Classes and Interfaces|All Packages|Serialized Form