AndStrategy

@Serializable
@SerialName(value = "and")
data class AndStrategy(val strategies: List<FlippingStrategy>) : FlippingStrategy(source)

A composite strategy that evaluates to true only if all child strategies evaluate to true.

Uses short-circuit evaluation: stops evaluating as soon as any strategy returns false.

Note: An empty strategies list evaluates to true (vacuous truth).

See also

Constructors

Link copied to clipboard
constructor(strategies: List<FlippingStrategy>)

Properties

Link copied to clipboard

The list of strategies to evaluate with logical AND.

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.