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
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.
-
Constructor Details
-
FeatureStateModel
public FeatureStateModel()
-
-
Method Details
-
getValue
Returns the value object.- Parameters:
identityId- Identity ID
-
equals
-
isHigherPriority
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`
-