Class FeatureStateModel

java.lang.Object
com.flagsmith.utils.models.BaseModel
com.flagsmith.flagengine.features.FeatureStateModel

public class FeatureStateModel
extends BaseModel
  • Constructor Details

    • FeatureStateModel

      public FeatureStateModel()
  • Method Details

    • getValue

      public Object getValue​(Object identityId)
      Returns the value object.
      Parameters:
      identityId - Identity ID
    • equals

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

      public boolean isHigherPriority​(FeatureStateModel other)
      Another FeatureStateModel is deemed to be higher priority if and only if it has a FeatureSegment and either this.FeatureSegment is null or the value of other.FeatureSegment.priority is lower than that of this.FeatureSegment.priority.
      Parameters:
      other - the other FeatureStateModel to compare priority with
      Returns:
      true if `this` is higher priority than `other`