Class VariantDef

java.lang.Object
io.getunleash.engine.VariantDef

public class VariantDef extends Object
Represents a variant definition.
  • Method Details

    • getName

      public String getName()
      Returns the name of the variant.
      Returns:
      the name of the variant
    • getPayload

      public io.getunleash.engine.Payload getPayload()
      Returns the payload of the variant.
      Returns:
      the payload of the variant
    • isEnabled

      public Boolean isEnabled()
      Returns whether the variant is enabled.
      Returns:
      true if the variant is enabled, false otherwise
    • isFeatureEnabled

      public Boolean isFeatureEnabled()
      Returns whether the feature that the variant belongs to is enabled.
      Returns:
      true if the feature that the variant belongs to is enabled, false otherwise