Package io.getunleash.engine
Class VariantDef
java.lang.Object
io.getunleash.engine.VariantDef
Represents a variant definition.
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the name of the variant.io.getunleash.engine.PayloadReturns the payload of the variant.Returns whether the variant is enabled.Returns whether the feature that the variant belongs to is enabled.
-
Method Details
-
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
Returns whether the variant is enabled.- Returns:
- true if the variant is enabled, false otherwise
-
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
-