Class ActiveExperimentVariant

  • All Implemented Interfaces:
    Serializable

    public class ActiveExperimentVariant
    extends Object
    implements Serializable
    Represents a active A/B test experiment variant.
    Since:
    14.0.0
    Version:
    $Revision: 24476 $ $Date: 2021-04-28 11:28:23 -0300 (Wed, 28 Apr 2021) $
    See Also:
    Serialized Form
    • Constructor Detail

      • ActiveExperimentVariant

        public ActiveExperimentVariant()
        This class' constructor.
        Since:
        14.0.0
      • ActiveExperimentVariant

        public ActiveExperimentVariant​(String experimentId,
                                       String experimentName,
                                       String variantId,
                                       String variantName)
        This class' constructor.
        Parameters:
        experimentId - the active experiment identifier.
        experimentName - the active experiment name.
        variantId - the active experiment variant identifier.
        variantName - the active experiment variant name.
        Since:
        14.0.0
    • Method Detail

      • getExperimentId

        public String getExperimentId()
        Returns the experimentId.
        Returns:
        the experimentId
        Since:
        14.0.0
      • getExperimentName

        public String getExperimentName()
        Returns the experimentName.
        Returns:
        the experimentName
        Since:
        14.0.0
      • getVariantId

        public String getVariantId()
        Returns the variantId.
        Returns:
        the variantId
        Since:
        14.0.0
      • getVariantName

        public String getVariantName()
        Returns the variantName.
        Returns:
        the variantName
        Since:
        14.0.0
      • setAbandoned

        public void setAbandoned​(boolean abandoned)
        Sets the abandoned.
        Parameters:
        abandoned - the abandoned value to set.
        Since:
        14.0.0
      • setGoalAchieved

        public void setGoalAchieved​(boolean goalAchieved)
        Sets the goalAchieved.
        Parameters:
        goalAchieved - the goalAchieved value to set.
        Since:
        14.0.0
      • completed

        public boolean completed()
        Returns if this active experiment has been completed.
        Returns:
        if this active experiment has been completed.
        Since:
        14.0.0