Class FeatureStateModel


  • public class FeatureStateModel
    extends BaseModel
    • Constructor Detail

      • FeatureStateModel

        public FeatureStateModel()
    • 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`