Enum Class FeatureResultSource

java.lang.Object
java.lang.Enum<FeatureResultSource>
growthbook.sdk.java.FeatureResultSource
All Implemented Interfaces:
Serializable, Comparable<FeatureResultSource>, Constable

public enum FeatureResultSource extends Enum<FeatureResultSource>
An enum of the possible sources for the feature result
  • Enum Constant Details

    • UNKNOWN_FEATURE

      @SerializedName("unknownFeature") public static final FeatureResultSource UNKNOWN_FEATURE
      When the feature is unknown
    • DEFAULT_VALUE

      @SerializedName("defaultValue") public static final FeatureResultSource DEFAULT_VALUE
      When the value is assigned due to a default value condition
    • FORCE

      @SerializedName("force") public static final FeatureResultSource FORCE
      When the value is assigned due to a forced condition
    • URL_OVERRIDE

      @SerializedName("urlOverride") public static final FeatureResultSource URL_OVERRIDE
      When the value is assigned due to forced feature assignment via the URL
    • EXPERIMENT

      @SerializedName("experiment") public static final FeatureResultSource EXPERIMENT
      When the value is assigned due to an experiment condition
    • CYCLIC_PREREQUISITE

      @SerializedName("cyclicPrerequisite") public static final FeatureResultSource CYCLIC_PREREQUISITE
      CyclicPrerequisite Value for the Feature is being processed
    • PREREQUISITE

      @SerializedName("prerequisite") public static final FeatureResultSource PREREQUISITE
      Prerequisite Value for the Feature is being processed
  • Method Details

    • values

      public static FeatureResultSource[] 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

      public static FeatureResultSource valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<FeatureResultSource>
    • fromString

      @Nullable public static FeatureResultSource fromString(String stringValue)
      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