Class FeatureValue

java.lang.Object
com.flagsmith.flagengine.FeatureValue

@Generated("jsonschema2pojo") public class FeatureValue extends Object
FeatureValue

Represents a multivariate value for a feature flag.

  • Constructor Details

    • FeatureValue

      public FeatureValue()
      No args constructor for use in serialization
    • FeatureValue

      public FeatureValue(FeatureValue source)
      Parameters:
      source - the object being copied
    • FeatureValue

      public FeatureValue(Object value, Double weight, Double priority)
      Parameters:
      value - Value. The value of the feature.
      weight - Weight. The weight of the feature value variant, as a percentage number (i.e. 100.0).
      priority - VariantPriority. Priority of the feature flag variant. Lower values indicate a higher priority when multiple variants apply to the same context key.
  • Method Details

    • getValue

      public Object getValue()
      Value

      The value of the feature. (Required)

    • setValue

      public void setValue(Object value)
      Value

      The value of the feature. (Required)

    • withValue

      public FeatureValue withValue(Object value)
    • getWeight

      public Double getWeight()
      Weight

      The weight of the feature value variant, as a percentage number (i.e. 100.0). (Required)

    • setWeight

      public void setWeight(Double weight)
      Weight

      The weight of the feature value variant, as a percentage number (i.e. 100.0). (Required)

    • withWeight

      public FeatureValue withWeight(Double weight)
    • getPriority

      public Double getPriority()
      VariantPriority

      Priority of the feature flag variant. Lower values indicate a higher priority when multiple variants apply to the same context key. (Required)

    • setPriority

      public void setPriority(Double priority)
      VariantPriority

      Priority of the feature flag variant. Lower values indicate a higher priority when multiple variants apply to the same context key. (Required)

    • withPriority

      public FeatureValue withPriority(Double priority)
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • setAdditionalProperty

      public void setAdditionalProperty(String name, Object value)
    • withAdditionalProperty

      public FeatureValue withAdditionalProperty(String name, Object value)
    • toString

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

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

      public boolean equals(Object other)
      Overrides:
      equals in class Object