EnumeratedExperiment<T extends Enum> class
An AdaptedExperiment that uses Enum values to represent its variants.
Enum.name
is used for trackingValue.
- Inheritance
-
- Object
- AdaptedExperiment<
T> - EnumeratedExperiment
Constructors
-
EnumeratedExperiment(ExperimentAdapter adapter, String id, bool active, T defaultVariant, Map<
T, int> weightedVariants, double sampleSize)
Properties
- active → bool
-
Whether this experiment is active.
no setterinherited
- defaultVariant → T
-
The default value for users that are not part of this experiment.
finalinherited
- enabled → bool
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The ID of this experiment.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sampleSize → double
-
The sample size of this experiment.
finalinherited
- trackingValue → String
-
The representation of the value that should be used for tracking in
analytics tools.
no setteroverride
- value → T
-
The value of this experiment.
no setteroverride
-
variants
→ List<
T> -
All of the variants of this experiment.
no setter
-
weightedVariants
→ Map<
T, int> ? -
All of the variants of this experiment and their weights.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited