Package com.configcat

Class PercentageOption


  • public class PercentageOption
    extends java.lang.Object
    Represents a percentage option.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getPercentage()
      A number between 0 and 100 that represents a randomly allocated fraction of the users.
      SettingValue getValue()
      The value associated with the percentage option.
      java.lang.String getVariationId()
      Variation ID.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PercentageOption

        public PercentageOption()
    • 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, Integer or Double.
      • getVariationId

        public java.lang.String getVariationId()
        Variation ID.