All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.configcat.PercentageOption Maven / Gradle / Ivy

Go to download

Java SDK for ConfigCat, a feature flag, feature toggle, and configuration management service. That lets you launch new features and change your software configuration remotely without actually (re)deploying code. ConfigCat even helps you do controlled roll-outs like canary releases and blue-green deployments.

The newest version!
package com.configcat;

import com.google.gson.annotations.SerializedName;

/**
 * Represents a percentage option.
 */
public class PercentageOption {

    @SerializedName(value = "p")
    private int percentage;
    @SerializedName(value = "v")
    private SettingValue value;
    @SerializedName(value = "i")
    private String variationId;

    /**
     * A number between 0 and 100 that represents a randomly allocated fraction of the users.
     */
    public int getPercentage() {
        return percentage;
    }

    /**
     * The value associated with the percentage option.
     * Can be a value of the following types: {@link Boolean}, {@link String}, {@link Integer} or {@link Double}.
     */
    public SettingValue getValue() {
        return value;
    }

    /**
     * Variation ID.
     */
    public String getVariationId() {
        return variationId;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy