Class FeatureStateModel
- java.lang.Object
-
- com.flagsmith.utils.models.BaseModel
-
- com.flagsmith.flagengine.features.FeatureStateModel
-
public class FeatureStateModel extends BaseModel
-
-
Constructor Summary
Constructors Constructor Description FeatureStateModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)ObjectgetValue(Object identityId)Returns the value object.booleanisHigherPriority(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.
-
-
-
Method Detail
-
getValue
public Object getValue(Object identityId)
Returns the value object.- Parameters:
identityId- Identity ID- Returns:
-
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 wiht- Returns:
- true if `this` is higher priority than `other`
-
-