NotStrategy

@Serializable
@SerialName(value = "not")
data class NotStrategy(val strategy: FlippingStrategy) : FlippingStrategy(source)

A composite strategy that negates the result of another strategy.

See also

Constructors

Link copied to clipboard
constructor(strategy: FlippingStrategy)

Properties

Link copied to clipboard

The strategy whose result will be negated.

Functions

Link copied to clipboard

Combines this strategy with other using logical AND.

Link copied to clipboard
open suspend override fun evaluate(featureId: String, store: FeatureStore?, context: FlippingExecutionContext): Boolean

Evaluates whether the feature should be enabled based on the execution context.

Link copied to clipboard

Negates this strategy.

Link copied to clipboard

Combines this strategy with other using logical OR.