Class Feature<ValueType>

java.lang.Object
growthbook.sdk.java.Feature<ValueType>
Type Parameters:
ValueType - value type for the feature

public class Feature<ValueType> extends Object
The feature with a generic value type.
  • defaultValue (any) - The default value (should use null if not specified)
  • rules (FeatureRule[]) - Array of FeatureRule objects that determine when and how the defaultValue gets overridden
  • Constructor Details

    • Feature

      public Feature()
  • Method Details

    • getRules

      @Nullable public ArrayList<FeatureRule<ValueType>> getRules()
      Array of Rule objects that determine when and how the defaultValue gets overridden
    • getDefaultValue

      public Object getDefaultValue()
      The default value (should use null if not specified)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object