Package com.configcat
Class PercentageOption
- java.lang.Object
-
- com.configcat.PercentageOption
-
public class PercentageOption extends java.lang.ObjectRepresents a percentage option.
-
-
Constructor Summary
Constructors Constructor Description PercentageOption()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPercentage()A number between 0 and 100 that represents a randomly allocated fraction of the users.SettingValuegetValue()The value associated with the percentage option.java.lang.StringgetVariationId()Variation ID.
-
-
-
Method Detail
-
getPercentage
public int getPercentage()
A number between 0 and 100 that represents a randomly allocated fraction of the users.
-
getValue
public SettingValue getValue()
The value associated with the percentage option. Can be a value of the following types:Boolean,String,IntegerorDouble.
-
getVariationId
public java.lang.String getVariationId()
Variation ID.
-
-