Package growthbook.sdk.java
Enum Class FeatureResultSource
- All Implemented Interfaces:
Serializable
,Comparable<FeatureResultSource>
,Constable
An enum of the possible sources for the feature result
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCyclicPrerequisite Value for the Feature is being processedWhen the value is assigned due to a default value conditionWhen the value is assigned due to an experiment conditionWhen the value is assigned due to a forced conditionPrerequisite Value for the Feature is being processedWhen the feature is unknownWhen the value is assigned due to forced feature assignment via the URL -
Method Summary
Modifier and TypeMethodDescriptionstatic FeatureResultSource
fromString
(String stringValue) Get a nullable enum Operator from the string value.toString()
static FeatureResultSource
Returns the enum constant of this class with the specified name.static FeatureResultSource[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
UNKNOWN_FEATURE
When the feature is unknown -
DEFAULT_VALUE
When the value is assigned due to a default value condition -
FORCE
When the value is assigned due to a forced condition -
URL_OVERRIDE
When the value is assigned due to forced feature assignment via the URL -
EXPERIMENT
When the value is assigned due to an experiment condition -
CYCLIC_PREREQUISITE
CyclicPrerequisite Value for the Feature is being processed -
PREREQUISITE
Prerequisite Value for the Feature is being processed
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
- Overrides:
toString
in classEnum<FeatureResultSource>
-
fromString
Get a nullable enum Operator from the string value. Use this instead of valueOf()- Parameters:
stringValue
- string to try to parse as an operator- Returns:
- nullable Operator
-